]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/fuse/dev.c
fuse: make fuse_direct_io() aware about AIO
authorMaxim Patlasov <mpatlasov@parallels.com>
Fri, 14 Dec 2012 15:20:51 +0000 (19:20 +0400)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 17 Apr 2013 19:50:59 +0000 (21:50 +0200)
commit36cf66ed9f871fc0d0911921fba5873df3ddb2dc
tree8a449efaf4eeb9f0044258d926711d5ebb03416f
parent01e9d11a3e79035ca5cd89b035435acd4ba61ee1
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>
fs/fuse/cuse.c
fs/fuse/dev.c
fs/fuse/file.c
fs/fuse/fuse_i.h