Re: Upcoming: Notifications, FS notifications and fsinfo()

From: David Howells
Date: Thu Apr 02 2020 - 11:42:56 EST


Miklos Szeredi <miklos@xxxxxxxxxx> wrote:

> > ext4_show_mount(), for example, doesn't lock against "mount -o remount", so
> > the configuration can be changing whilst it's being rendered to text.
>
> Does s_umount nest inside namespace_sem? I really don't see the
> relation of those locks.

If I understand aright what Al has told me, it's a bad idea to do any blocking
operation inside of namespace_sem apart from kmalloc(GFP_KERNEL).

David