Re: [PATCHES v2][RFC][CFR] mount-related stuff

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

 



On 24/6/25 15:05, Al Viro wrote:
On Tue, Jun 24, 2025 at 02:48:53PM +0800, Ian Kent wrote:

Also alter may_umount_tree() to take a flag to indicate a reference to
the passed in mount is held.

This avoids unnecessary umount requests being sent to the automount
daemon if a mount in another mount namespace is in use when the expire
check is done.
Huh?  I'm probably missing something, but all callers of may_umount_tree()
seem to be passing that flag...  propagate_mount_tree_busy() - sure, but why
does may_umount_tree() get that?

I'm half-asleep at the moment (3am here), so maybe it will make more sense
in the morning...

Yes, fair point, maybe it should be propagate_mount_tree_busy() only that grows

a flag as it's the function that gets called without knowing whether the caller

holds an additional reference to the mount or not.


Ian








[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