From: Darrick J. Wong <djwong@xxxxxxxxxx> When we're destroying a fuse connection, send a FUSE_DESTROY command to userspace so that it has time to react (closing block devices, reporting latent errors, etc) before the mount actually goes away. Signed-off-by: "Darrick J. Wong" <djwong@xxxxxxxxxx> --- fs/fuse/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 84b7cd5ffe843b..224fb9e7610cc5 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -2056,7 +2056,7 @@ void fuse_conn_destroy(struct fuse_mount *fm) { struct fuse_conn *fc = fm->fc; - if (fc->destroy) + if (fc->destroy || fc->iomap) fuse_send_destroy(fm); fuse_abort_conn(fc);