From: Jeff Moyer <jmoyer@redhat.com>
To: Anand Avati <avati@redhat.com>
Cc: miklos@szeredi.hu, linux-fsdevel@vger.kernel.org,
fuse-devel@lists.sourceforge.net, chenk@redhat.com,
josef@redhat.com
Subject: Re: [PATCH v5] fuse: O_DIRECT support for files
Date: Thu, 01 Mar 2012 15:24:15 -0500 [thread overview]
Message-ID: <x49wr74ax3k.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <20120217174625.GA22569@shell.devel.redhat.com> (Anand Avati's message of "Fri, 17 Feb 2012 12:46:25 -0500")
Anand Avati <avati@redhat.com> writes:
> Implement ->direct_IO() method in aops. The ->direct_IO() method combines
> the existing fuse_direct_read/fuse_direct_write methods to implement
> O_DIRECT functionality.
>
> Reaching ->direct_IO() in the read path via generic_file_aio_read ensures
> proper synchronization with page cache with its existing framework.
>
> Reaching ->direct_IO() in the write path via fuse_file_aio_write is made
> to come via generic_file_direct_write() which makes it play nice with
> the page cache w.r.t other mmap pages etc.
>
> On files marked 'direct_io' by the filesystem server, IO always follows
> the fuse_direct_read/write path. There is no effect of fcntl(O_DIRECT)
> and it always succeeds.
>
> On files not marked with 'direct_io' by the filesystem server, the IO
> path depends on O_DIRECT flag by the application. This can be passed
> at the time of open() as well as via fcntl().
>
> Note that asynchronous O_DIRECT iocb jobs are completed synchronously
> always (this has been the case with FUSE even before this patch)
>
> Signed-off-by: Anand Avati <avati@redhat.com>
Looks good to me.
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
next prev parent reply other threads:[~2012-03-01 20:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-17 17:46 [PATCH v5] fuse: O_DIRECT support for files Anand Avati
2012-03-01 20:24 ` Jeff Moyer [this message]
2012-03-05 16:04 ` Miklos Szeredi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x49wr74ax3k.fsf@segfault.boston.devel.redhat.com \
--to=jmoyer@redhat.com \
--cc=avati@redhat.com \
--cc=chenk@redhat.com \
--cc=fuse-devel@lists.sourceforge.net \
--cc=josef@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).