Re: [PATCH 03/34] teach move_mount(2) to work with OPEN_TREE_CLONE [ver #12]

From: David Howells
Date: Fri Oct 19 2018 - 17:40:11 EST

Alan Jenkins <alan.christopher.jenkins@xxxxxxxxx> wrote:

> I guess this tries to fix the second of the two sequences I mentioned -
> mount+unmount, then close the FD. It doesn't seem to work.

It fixes this:

unshare --mount
mount --move . /mnt
mount --move /mnt /mnt
umount /mnt

Which usually gets a GPF in fsnotify.