diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index eff17f7f376e..bd35be7ba89f 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -1581,6 +1581,13 @@ void fuse_conn_destroy(struct fuse_mount *fm) fuse_abort_conn(fc); fuse_wait_aborted(fc); + + if (!list_empty(&fc->entry)) { + mutex_lock(&fuse_mutex); + list_del(&fc->entry); + fuse_ctl_remove_conn(fc); + mutex_unlock(&fuse_mutex); + } } EXPORT_SYMBOL_GPL(fuse_conn_destroy);