From c756e0a4d79202535774806f148026e40466a5eb Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 16 Oct 2007 23:31:00 -0700 Subject: fuse: add reference counting to fuse_file Make lifetime of 'struct fuse_file' independent from 'struct file' by adding a reference counter and destructor. This will enable asynchronous page writeback, where it cannot be guaranteed, that the file is not released while a request with this file handle is being served. The actual RELEASE request is only sent when there are no more references to the fuse_file. Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- fs/fuse/dev.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'fs/fuse/dev.c') diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 9c9e35e42bf..de25bff3142 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -233,8 +233,6 @@ static void request_end(struct fuse_conn *fc, struct fuse_req *req) spin_unlock(&fc->lock); dput(req->dentry); mntput(req->vfsmount); - if (req->file) - fput(req->file); wake_up(&req->waitq); if (end) end(fc, req); -- cgit v1.2.3