Skip to content

Commit 413daa1

Browse files
author
Miklos Szeredi
committed
fuse: connection remove fix
Re-add lost removal of fc from fuse_conn_list and the control filesystem. Reported-by: kernel test robot <[email protected]> Fixes: fcee216 ("fuse: split fuse_mount off of fuse_conn") Signed-off-by: Miklos Szeredi <[email protected]>
1 parent bf109c6 commit 413daa1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

fs/fuse/inode.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,6 +1547,13 @@ void fuse_conn_destroy(struct fuse_mount *fm)
15471547

15481548
fuse_abort_conn(fc);
15491549
fuse_wait_aborted(fc);
1550+
1551+
if (!list_empty(&fc->entry)) {
1552+
mutex_lock(&fuse_mutex);
1553+
list_del(&fc->entry);
1554+
fuse_ctl_remove_conn(fc);
1555+
mutex_unlock(&fuse_mutex);
1556+
}
15501557
}
15511558
EXPORT_SYMBOL_GPL(fuse_conn_destroy);
15521559

0 commit comments

Comments
 (0)