Re: [PATCH 0/2] Prevent re-use of FUSE superblock after force unmount

From: Daniil Lunev
Date: Wed May 11 2022 - 03:37:04 EST


On Wed, May 11, 2022 at 5:07 PM Miklos Szeredi <miklos@xxxxxxxxxx> wrote:
>
> On Wed, 11 May 2022 at 03:31, Daniil Lunev <dlunev@xxxxxxxxxxxx> wrote:
> >
> > Force unmount of fuse severes the connection between FUSE driver and its
> > userspace counterpart.
>
> Why is forced umount being used in the first place?

To correctly suspend-resume. We have been using this force unmount historically
to circumvent the suspend-resume issues which periodically occur with fuse.
We observe FUSE rejecting to remount the device because of the issue this
patchset attempts to address after the resume if there are still open
file handles
holding old super blocks. I am not sure if fuse's interaction with suspend is
something that has been resolved systematically (we are also trying to
figure that
out). Regardless of that, doing force unmount of a mount point is a legitimate
operation, and with FUSE it may leave the system in a state that is returning
errors for other legitimate operations.

Thanks,
Daniil