]> Git Repo - linux.git/commit - fs/fuse/dev.c
fuse: do not take fc->lock in fuse_request_send_background()
authorKirill Tkhai <[email protected]>
Mon, 27 Aug 2018 15:29:56 +0000 (18:29 +0300)
committerMiklos Szeredi <[email protected]>
Fri, 28 Sep 2018 14:43:23 +0000 (16:43 +0200)
commit63825b4e1da5a3cba79d835a5925e5daf7db3a77
tree55581224599445dbb52801e50273cb3071f700a8
parentae2dffa39485c6fd4f22321814c7287c274b473a
fuse: do not take fc->lock in fuse_request_send_background()

Currently, we take fc->lock there only to check for fc->connected.
But this flag is changed only on connection abort, which is very
rare operation.

So allow checking fc->connected under just fc->bg_lock and use this lock
(as well as fc->lock) when resetting fc->connected.

Signed-off-by: Kirill Tkhai <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
fs/fuse/dev.c
fs/fuse/file.c
fs/fuse/fuse_i.h
This page took 0.053822 seconds and 4 git commands to generate.