On Wed, May 03, 2023 at 01:18:42PM +0200, Christian Brauner wrote: > +/** > + * do_lock_mount - lock mount and mountpoint > + * @path: target path > + * @beneath: whether the intention is to mount beneath @path > + * > + * Follow the mount stack on @path until the top mount @mnt is found. If > + * the initial @path->{mnt,dentry} is a mountpoint lookup the first > + * mount stacked on top of it. Then simply follow @{mnt,mnt->mnt_root} > + * until nothing is stacked on top of it anymore. > + * > + * Acquire the inode_lock() on the top mount's ->mnt_root to protect > + * against concurrent removal of the new mountpoint from another mount > + * namespace. > + * > + * If @beneath is requested, acquire inode_lock() on @mnt's mountpoint > + * @mp on @mnt->mnt_parent must be acquired. This protects against a Redundant use of "acquire" here.