From: Christoph Hellwig <hch@infradead.org>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: Christoph Hellwig <hch@infradead.org>,
linux-scsi <linux-scsi@vger.kernel.org>
Subject: Re: Proposals to change the way all drivers work with SCSI commands
Date: Sat, 12 May 2007 16:52:40 +0100 [thread overview]
Message-ID: <20070512155240.GA8460@infradead.org> (raw)
In-Reply-To: <1178985016.3723.15.camel@mulgrave.il.steeleye.com>
On Sat, May 12, 2007 at 10:50:16AM -0500, James Bottomley wrote:
> > I don't like it at all. It means we tange up dma mapping bits into
> > a layer were they don't belong at all.
>
> Well ... libata already does this ... I don't remember you complaining
> about it being a layering violation in libata.
I have in fact never reviewed libata fully, and no I don't like this
in libata either.
> > We have hbas doing pio, doing
> > channel programs, mangling dma list before or after the mapping or just
> > dealing with the commands in kernelspace. We also have architectures
> > without dma mapping support.
>
> I agree we have a lot of special cases which need handling ... could we
> not get around all of these with a template flag specifying whether the
> driver wants the mid-layer to dma_map or not?
We probably could. But if would be hacky as hell, and we'd have to hack
the core code for every new piece of whacky hardware. I much prefer
the current clean abstraction where the responsibily is clearly divided.
Just look at the mess the infinibad people created because they put
the dma mapping functionality outside of the drivers.
prev parent reply other threads:[~2007-05-12 15:52 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-11 18:33 Proposals to change the way all drivers work with SCSI commands James Bottomley
2007-05-11 18:42 ` FUJITA Tomonori
2007-05-11 19:15 ` Jeff Garzik
2007-05-11 19:49 ` James Bottomley
2007-05-11 20:10 ` Jeff Garzik
2007-05-11 20:00 ` David Miller
2007-05-11 21:12 ` James Bottomley
2007-05-11 21:21 ` David Miller
2007-05-11 21:36 ` James Bottomley
2007-05-11 21:47 ` David Miller
2007-05-11 21:52 ` James Bottomley
2007-05-11 21:20 ` Stefan Richter
2007-05-11 21:30 ` Kristian Høgsberg
2007-05-11 21:58 ` Stefan Richter
2007-05-12 6:35 ` Muli Ben-Yehuda
2007-05-12 9:12 ` Heiko Carstens
2007-05-12 13:04 ` James Bottomley
2007-05-12 15:29 ` Christoph Hellwig
2007-05-12 15:50 ` James Bottomley
2007-05-12 15:52 ` Christoph Hellwig [this message]
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=20070512155240.GA8460@infradead.org \
--to=hch@infradead.org \
--cc=James.Bottomley@SteelEye.com \
--cc=linux-scsi@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