Commit 413daa1a authored by Miklos Szeredi's avatar Miklos Szeredi

fuse: connection remove fix

Re-add lost removal of fc from fuse_conn_list and the control filesystem.
Reported-by: default avatarkernel test robot <rong.a.chen@intel.com>
Fixes: fcee216b ("fuse: split fuse_mount off of fuse_conn")
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent bf109c64
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment