mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 03:45:24 -04:00
UPSTREAM: fuse: connection remove fix
Re-add lost removal of fc from fuse_conn_list and the control filesystem.
Reported-by: kernel test robot <rong.a.chen@intel.com>
Fixes: fcee216beb9c ("fuse: split fuse_mount off of fuse_conn")
Change-Id: Icaaee7958947461b80a10d42a38ff5a3078e268a
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
8baaccc83c
commit
5d30dbe4bf
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue