aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-01-17 01:14:42 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-17 02:15:31 -0500
commit64c6d8ed4c55f0a99b1b81558851da80c8d58244 (patch)
treeb8cfa96b8de4357e969e9492bfea65b22b0cca88 /fs/fuse/fuse_i.h
parent69a53bf267fa58b89aa659d121dfe38436562a30 (diff)
[PATCH] fuse: add asynchronous request support
Add possibility for requests to run asynchronously and call an 'end' callback when finished. With this, the special handling of the INIT and RELEASE requests can be cleaned up too. Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index e6381db41df9..145098056ca6 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -120,6 +120,8 @@ enum fuse_req_state {
120 FUSE_REQ_FINISHED 120 FUSE_REQ_FINISHED
121}; 121};
122 122
123struct fuse_conn;
124
123/** 125/**
124 * A request to the client 126 * A request to the client
125 */ 127 */
@@ -186,6 +188,9 @@ struct fuse_req {
186 188
187 /** File used in the request (or NULL) */ 189 /** File used in the request (or NULL) */
188 struct file *file; 190 struct file *file;
191
192 /** Request completion callback */
193 void (*end)(struct fuse_conn *, struct fuse_req *);
189}; 194};
190 195
191/** 196/**