fuse: fix hang of single threaded fuseblk filesystem
authorMiklos Szeredi <mszeredi@suse.cz>
Fri, 25 Feb 2011 13:44:58 +0000 (14:44 +0100)
committerMiklos Szeredi <mszeredi@suse.cz>
Fri, 25 Feb 2011 13:44:58 +0000 (14:44 +0100)
commit5a18ec176c934ca1bc9dc61580a5e0e90a9b5733
tree6995509f59166fff90ce240ce72e3858f61ac101
parent4662db446190ddef8fbab024f72dee77dd04b8f2
fuse: fix hang of single threaded fuseblk filesystem

Single threaded NTFS-3G could get stuck if a delayed RELEASE reply
triggered a DESTROY request via path_put().

Fix this by

 a) making RELEASE requests synchronous, whenever possible, on fuseblk
 filesystems

 b) if not possible (triggered by an asynchronous read/write) then do
 the path_put() in a separate thread with schedule_work().

Reported-by: Oliver Neukum <oneukum@suse.de>
Cc: stable@kernel.org
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/file.c
fs/fuse/fuse_i.h