public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Douglas Gilbert <dougg@torque.net>
Cc: Ingo Oeser <ingo.oeser@informatik.tu-chemnitz.de>,
	linux-kernel@vger.kernel.org
Subject: Re: direct-to-BIO for O_DIRECT
Date: Mon, 08 Jul 2002 21:26:48 -0700	[thread overview]
Message-ID: <3D2A6608.7C43EE3@zip.com.au> (raw)
In-Reply-To: 3D2A5F34.F38B893F@torque.net

Douglas Gilbert wrote:
> 
> Ingo Oeser wrote:
> 
> >On Sun, Jul 07, 2002 at 08:19:33PM -0700, Andrew Morton wrote:
> > > Question is: what do we want to do with this sucker?  These are the
> > > remaining users of kiovecs:
> > >
> > >       drivers/md/lvm-snap.c
> > >       drivers/media/video/video-buf.c
> > >       drivers/mtd/devices/blkmtd.c
> > >       drivers/scsi/sg.c
> > >
> > > the video and mtd drivers seems to be fairly easy to de-kiobufize.
> > > I'm aware of one proprietary driver which uses kiobufs.  XFS uses
> > > kiobufs a little bit - just to map the pages.
> >
> > It would be nice if we could just map a set of user pages to a scatterlist.
> 
> After disabling kiobufs in sg I would like such a drop
> in replacement.

Ben had lightweight sg structures called `kvecs' and `kveclets'. And
library functions to map pages into them.  And code to attach them
to BIOs.  So we'll be looking at getting that happening.

The other common requirement (used in several places in the kernel,
and in LVM2) is the ability to perform bulk I/O against a blockdev - simply
read and write a chunk of disk into a list of kernel pages.  So we'll need a
library function for that.   And the O_DIRECT/raw implementation can be bent
around to use those things.

> > Developers of mass transfer devices (video grabbers, dsp devices, sg and
> > many others) would just LOVE you for this ;-)
> 
> Agreed. Tape devices could be added to your list.
> Large page support will make for very efficient zero
> copy IO.

Haven't thought about large pages.  We don't seem to have an implementation of
them yet, and I'm not sure how the DMA mapping API would get along with
them.

-

  reply	other threads:[~2002-07-09  4:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-09  3:57 direct-to-BIO for O_DIRECT Douglas Gilbert
2002-07-09  4:26 ` Andrew Morton [this message]
2002-07-09  8:16   ` Ingo Oeser
2002-07-11 17:28   ` Ingo Oeser
2002-07-11 20:43   ` Daniel Phillips
  -- strict thread matches above, loose matches on Subject: below --
2002-07-11  6:09 Adam J. Richter
     [not found] <3D2904C5.53E38ED4@zip.com.au.suse.lists.linux.kernel>
2002-07-08  7:26 ` Andi Kleen
2002-07-08  9:19   ` Suparna Bhattacharya
2002-07-08 15:03   ` Matt D. Robinson
2002-07-08  3:19 Andrew Morton
2002-07-08  3:30 ` Lincoln Dale
2002-07-08  7:44 ` Ingo Oeser
2002-07-11  2:25 ` Lincoln Dale
2002-07-11  3:24   ` Andrew Morton
2002-07-11  3:25     ` Lincoln Dale
2002-07-11 19:52   ` Jesse Barnes
2002-07-11 23:40     ` Lincoln Dale

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=3D2A6608.7C43EE3@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=dougg@torque.net \
    --cc=ingo.oeser@informatik.tu-chemnitz.de \
    --cc=linux-kernel@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