fuse: hold inode instead of path after release
path_put() in release could trigger a DESTROY request in fuseblk. The possible deadlock was worked around by doing the path_put() with schedule_work(). This complexity isn't needed if we just hold the inode instead of the path. Since we now flush all requests before destroying the super block we can be sure that all held inodes will be dropped. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
This commit is contained in:
@@ -305,11 +305,8 @@ struct fuse_req {
|
||||
/** Data for asynchronous requests */
|
||||
union {
|
||||
struct {
|
||||
union {
|
||||
struct fuse_release_in in;
|
||||
struct work_struct work;
|
||||
};
|
||||
struct path path;
|
||||
struct fuse_release_in in;
|
||||
struct inode *inode;
|
||||
} release;
|
||||
struct fuse_init_in init_in;
|
||||
struct fuse_init_out init_out;
|
||||
|
Reference in New Issue
Block a user