From: Al Viro Subject: Re: [PATCH block/for-linus] writeback: flush inode cgroup wb switches instead of pinning super_block Date: Mon, 29 Feb 2016 21:06:15 +0000 Message-ID: <20160229210614.GC17997@ZenIV.linux.org.uk> References: <20160216182457.GO3741@mtj.duckdns.org> <20160217205721.GE14140@quack.suse.cz> <20160217210744.GA6479@mtj.duckdns.org> <20160217223009.GN14140@quack.suse.cz> <20160217230231.GC6479@mtj.duckdns.org> <20160229204724.GV3965@htj.duckdns.org> <20160229205428.GB17997@ZenIV.linux.org.uk> <20160229205837.GX3965@htj.duckdns.org> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20160229205837.GX3965-piEFEHQLUPpN0TnZuCh8vA@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Tejun Heo Cc: Tahsin Erdogan , Jan Kara , Jens Axboe , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Theodore Ts'o , Nauman Rafique , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jan Kara On Mon, Feb 29, 2016 at 03:58:37PM -0500, Tejun Heo wrote: > On Mon, Feb 29, 2016 at 08:54:28PM +0000, Al Viro wrote: > > > This patch removes the problematic super_block pinning and instead > > > makes generic_shutdown_super() flush in-flight wb switches. wb > > > switches are now executed on a dedicated isw_wq so that they can be > > > flushed and isw_nr_in_flight keeps track of the number of in-flight wb > > > switches so that flushing can be avoided in most cases. > > > > Wait a bloody minute. What's to prevent shrink_dcache_for_umount() from > > dirtying more inodes, triggering more of the same? > > Hmmm? The flushing is done after shrink_dcache_for_umount() and > sync_filesystems(). Aren't inodes supposed to stay clean after that? s/shrink_dcache_for_umount/fsnotify_unmount_inodes/ - sorry.