From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932535AbdJPWTF (ORCPT ); Mon, 16 Oct 2017 18:19:05 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57964 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932428AbdJPWTE (ORCPT ); Mon, 16 Oct 2017 18:19:04 -0400 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> User-Agent: Mutt/1.9.0 (2017-09-02) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.