diff options
author | Maxim Patlasov <mpatlasov@parallels.com> | 2012-12-14 16:20:51 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2013-04-17 21:50:59 +0200 |
commit | 36cf66ed9f871fc0d0911921fba5873df3ddb2dc (patch) | |
tree | 8a449efaf4eeb9f0044258d926711d5ebb03416f /fs/fuse/dev.c | |
parent | fuse: add support of async IO (diff) | |
download | linux-36cf66ed9f871fc0d0911921fba5873df3ddb2dc.tar.xz linux-36cf66ed9f871fc0d0911921fba5873df3ddb2dc.zip |
fuse: make fuse_direct_io() aware about AIO
The patch implements passing "struct fuse_io_priv *io" down the stack up to
fuse_send_read/write where it is used to submit request asynchronously.
io->async==0 designates synchronous processing.
Non-trivial part of the patch is changes in fuse_direct_io(): resources
like fuse requests and user pages cannot be released immediately in async
case.
Signed-off-by: Maxim Patlasov <mpatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r-- | fs/fuse/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index be5c7e13320c..07bdb14ae7a3 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -111,7 +111,7 @@ static void restore_sigs(sigset_t *oldset) sigprocmask(SIG_SETMASK, oldset, NULL); } -static void __fuse_get_request(struct fuse_req *req) +void __fuse_get_request(struct fuse_req *req) { atomic_inc(&req->count); } |