diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-01-16 22:14:42 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-16 23:15:31 -0800 |
commit | 64c6d8ed4c55f0a99b1b81558851da80c8d58244 (patch) | |
tree | b8cfa96b8de4357e969e9492bfea65b22b0cca88 /fs/fuse/fuse_i.h | |
parent | 69a53bf267fa58b89aa659d121dfe38436562a30 (diff) | |
download | lwn-64c6d8ed4c55f0a99b1b81558851da80c8d58244.tar.gz lwn-64c6d8ed4c55f0a99b1b81558851da80c8d58244.zip |
[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.h | 5 |
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 { FUSE_REQ_FINISHED }; +struct fuse_conn; + /** * A request to the client */ @@ -186,6 +188,9 @@ struct fuse_req { /** File used in the request (or NULL) */ struct file *file; + + /** Request completion callback */ + void (*end)(struct fuse_conn *, struct fuse_req *); }; /** |