linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew.r.wilcox@intel.com>
To: linux-fsdevel@vger.kernel.org, linux-mm@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: Matthew Wilcox <matthew.r.wilcox@intel.com>
Subject: [PATCH 0/6] Page I/O
Date: Thu,  9 Jan 2014 21:39:45 -0500	[thread overview]
Message-ID: <1389321591-25455-1-git-send-email-matthew.r.wilcox@intel.com> (raw)

This patch set implements pageio as I described in my talk at
Linux.Conf.AU.  It's for review more than application, I think
benchmarking is going to be required to see if it's a win.  We've done
some benchmarking with an earlier version of the patch and a Chatham card,
and it's a win for us.

The fundamental point of these patches is that we *can* do I/O without
allocating a BIO (or request, or ...) and so we can end up doing fun
things like swapping out a page without allocating any memory.

Possibly it would be interesting to do sub-page I/Os (ie change the
rw_page prototype to take a 'start' and 'length' instead of requiring the
I/O to be the entire page), but the problem then arises about what the
'done' callback should be.

Keith Busch (1):
  NVMe: Add support for rw_page

Matthew Wilcox (5):
  Add bdev_read_page() and bdev_write_page()
  Factor page_endio() out of mpage_end_io()
  swap: Use bdev_read_page() / bdev_write_page()
  brd: Add support for rw_page
  virtio_blk: Add rw_page implementation

 drivers/block/brd.c        |   10 +++
 drivers/block/nvme-core.c  |  129 ++++++++++++++++++++++++++++++++++++---------
 drivers/block/virtio_blk.c |   44 +++++++++++++++
 fs/block_dev.c             |   34 +++++++++++
 fs/mpage.c                 |   83 +++++++++++++++-------------
 include/linux/blkdev.h     |    4 +
 include/linux/pagemap.h    |    2 
 mm/filemap.c               |   25 ++++++++
 mm/page_io.c               |   23 +++++++-
 9 files changed, 288 insertions(+), 66 deletions(-)


             reply	other threads:[~2014-01-10  2:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-10  2:39 Matthew Wilcox [this message]
2014-01-10  2:39 ` [PATCH 1/6] Add bdev_read_page() and bdev_write_page() Matthew Wilcox
2014-01-10  2:39   ` [PATCH 2/6] Factor page_endio() out of mpage_end_io() Matthew Wilcox
2014-01-10  2:39   ` [PATCH 3/6] swap: Use bdev_read_page() / bdev_write_page() Matthew Wilcox
2014-01-10  2:39   ` [PATCH 4/6] brd: Add support for rw_page Matthew Wilcox
2014-01-10  2:39   ` [PATCH 5/6] virtio_blk: Add rw_page implementation Matthew Wilcox
2014-01-10  2:39   ` [PATCH 6/6] NVMe: Add support for rw_page Matthew Wilcox
2014-01-10 15:24 ` [PATCH 0/6] Page I/O Jeff Moyer
2014-01-10 16:17   ` Matthew Wilcox
2014-01-15  0:04   ` Dave Chinner

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=1389321591-25455-1-git-send-email-matthew.r.wilcox@intel.com \
    --to=matthew.r.wilcox@intel.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@vger.kernel.org \
    /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).