mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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: fcee216beb ("fuse: split fuse_mount off of fuse_conn")
Signed-off-by: Miklos Szeredi <[email protected]>
This commit is contained in:
1 parent
bf109c6404
commit
413daa1a3f
1 file changed
+7
@@ -1547,6 +1547,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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user