Re: [PATCH 4/4] change_mnt_propagation(): calculate propagation source only if we'll need it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 16, 2025 at 12:36:45AM +0100, Al Viro wrote:
> We only need it when mount in question was sending events downstream (then
> recepients need to switch to new master) or the mount is being turned into
> slave (then we need a new master for it).
> 
> That wouldn't be a big deal, except that it causes quite a bit of work
> when umount_tree() is taking a large peer group out.  Adding a trivial
> "don't bother calling propagation_source() unless we are going to use
> its results" logics improves the things quite a bit.
> 
> We are still doing unnecessary work on bulk removals from propagation graph,
> but the full solution for that will have to wait for the next merge window.
> 
> Fixes: 955336e204ab "do_make_slave(): choose new master sanely"
> Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
> ---

Reviewed-by: Christian Brauner <brauner@xxxxxxxxxx>




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux