From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 16 Oct 2017 23:19:02 +0100 From: Al Viro To: Leon Yang Cc: "open list:FILESYSTEMS (VFS and infrastructure)" , open list Subject: Re: [PATCH] Batch unmount cleanup Message-ID: <20171016221902.GM21978@ZenIV.linux.org.uk> References: <1508179936-15591-1-git-send-email-leon.gh.yang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1508179936-15591-1-git-send-email-leon.gh.yang@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: 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, makes unmounting faster > without adding too much overhead. This is useful especially for > servers with many containers where mounting/unmounting happens a > lot. NAK. You really do _not_ want to return from umount(2) too early.