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