]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/fuse/dev.c
fuse: don't hold lock over request_wait_answer()
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 1 Jul 2015 14:26:00 +0000 (16:26 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 1 Jul 2015 14:26:00 +0000 (16:26 +0200)
commitc47752673acb130e5132db0e52363e15be260ca4
treec8c6c0c6f93ed25f20b0acff96c6c8c084910547
parent7d2e0a099c7685a7355c27a2c3dc76ea7cfc8283
fuse: don't hold lock over request_wait_answer()

Only hold fc->lock over sections of request_wait_answer() that actually
need it.  If wait_event_interruptible() returns zero, it means that the
request finished.  Need to add memory barriers, though, to make sure that
all relevant data in the request is synchronized.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/dev.c