[PATCH 05/11] fuse: send FUSE_DESTROY to userspace when tearing down an iomap connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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);





[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux