]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: do not take fc->lock in fuse_request_send_background()
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 27 Aug 2018 15:29:56 +0000 (18:29 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 28 Sep 2018 14:43:23 +0000 (16:43 +0200)
commitbb2f89ec4d522b55ee72b3574b9729e113c0d455
tree55581224599445dbb52801e50273cb3071f700a8
parent33fbbfad89f65f3af618585ddd814ffa0e436d3a
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 <ktkhai@virtuozzo.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c
fs/fuse/file.c
fs/fuse/fuse_i.h