All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: jim owens <owens6336@gmail.com>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH V3 17/18] Btrfs: Full direct I/O and AIO read implementation.
Date: Tue, 23 Mar 2010 06:49:39 +0100	[thread overview]
Message-ID: <87sk7r60zw.fsf@basil.nowhere.org> (raw)
In-Reply-To: <4BA6E563.4090206@gmail.com> (jim owens's message of "Sun, 21 Mar 2010 23:34:59 -0400")

jim owens <owens6336@gmail.com> writes:

Hi Jim,

I read through large chunks of that patch. I don't claim to fully
understand all the btrfs infrastructure details enough, so it wasn't
really serious code review.

One thing that stroke me while reading is that, except for the out of line no data
checksum case, this isn't real classical zero copy direct IO because
you always have to copy through some buffer.

It's more like "uncached IO"

I was wondering that at least for those cases wouldn't it be simpler
to use the normal page cache IO path and use new hints that disable
prefetch/write-behind/caching in the page cache after the IO operation?

Is there any particular reason this wasn't done? Was it because
of aio?

I know the page cache currently doesn't support that today, but
presumably it wouldn't be too hard to add.

I guess the code would be much simpler if it only did the no checksum
case.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.

  reply	other threads:[~2010-03-23  5:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-22  3:34 [PATCH V3 17/18] Btrfs: Full direct I/O and AIO read implementation jim owens
2010-03-23  5:49 ` Andi Kleen [this message]
2010-03-23 21:40   ` jim owens
2010-03-24  0:57     ` Chris Mason
2010-03-24  2:37     ` Andi Kleen
2010-03-25  3:08       ` jim owens
2010-03-25  9:41         ` Andi Kleen
2010-03-25 22:38           ` jim owens
2010-03-23 21:44   ` jim owens

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=87sk7r60zw.fsf@basil.nowhere.org \
    --to=andi@firstfloor.org \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=owens6336@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.