Re: [PATCH 4/6] make struct mountpoint bear the dentry reference to mountpoint, not struct mount

From: Linus Torvalds
Date: Sun Jul 07 2019 - 17:17:59 EST


On Fri, Jul 5, 2019 at 5:22 PM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> +static HLIST_HEAD(unmounted); /* protected by namespace_sem */
> +static LIST_HEAD(ex_mountpoints);

What protects the ex_mountpoints list?

It looks like it's the mount_lock, but why isn't that documented?

It sure isn't namespace_sem from the comment above.

Linus