Re: [PATCH] Batch unmount cleanup

2017-10-17 Thread Eric W. Biederman
Leon Yang writes: > From: Leon Yang > > Each time the unmounted list is cleanup, synchronize_rcu() is > called, which is relatively costly. Scheduling the cleanup in a > workqueue, similar to what is being done in > net/core/net_namespace.c:cleanup_net, makes unmounting faster > without adding t

Re: [PATCH] Batch unmount cleanup

2017-10-16 Thread Al Viro
On Mon, Oct 16, 2017 at 01:52:16PM -0500, Leon Yang wrote: > From: Leon Yang > > Each time the unmounted list is cleanup, synchronize_rcu() is > called, which is relatively costly. Scheduling the cleanup in a > workqueue, similar to what is being done in > net/core/net_namespace.c:cleanup_net, ma

[PATCH] Batch unmount cleanup

2017-10-16 Thread Leon Yang
From: Leon Yang Each time the unmounted list is cleanup, synchronize_rcu() is called, which is relatively costly. Scheduling the cleanup in a workqueue, similar to what is being done in net/core/net_namespace.c:cleanup_net, makes unmounting faster without adding too much overhead. This is useful