[Virtio-fs] [PATCH] virtiofsd: simplify setup_remount_slave
Stefan Hajnoczi
stefanha at redhat.com
Wed Aug 14 12:36:18 UTC 2019
On Wed, Aug 14, 2019 at 10:27:51AM +0800, Peng Tao wrote:
> We can just use MS_REC to propagate MS_SLAVE. This would also allow us
> to close a race window between reading proc mountinfo and calling
> mount(MS_SLAVE) for each entry, vs. others umounting the mount point in
> parallel.
>
> Signed-off-by: Peng Tao <tao.peng at linux.alibaba.com>
> ---
> contrib/virtiofsd/passthrough_ll.c | 53 ++----------------------------
> 1 file changed, 3 insertions(+), 50 deletions(-)
Let's try it!
Reviewed-by: Stefan Hajnoczi <stefanha at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virtio-fs/attachments/20190814/e42c6d79/attachment.sig>
More information about the Virtio-fs
mailing list