* Re: Can a non-sg scsi write command be more than PAGE_SIZE length?
[not found] ` <20050419092431.GA98975@dspnet.fr.eu.org>
@ 2005-04-19 9:29 ` Christoph Hellwig
2005-04-19 14:14 ` James Bottomley
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2005-04-19 9:29 UTC (permalink / raw)
To: Olivier Galibert, Hack inc., linux-scsi
On Tue, Apr 19, 2005 at 11:24:31AM +0200, Olivier Galibert wrote:
> > Yes, it's allowed.
>
> Thanks. Pages in that case are continuous then, right?
Good question actually. I know XFS does passed vmalloc'ed memory down
the block I/O path, but that's as a scatter/gather request. All non-s/g
request should be contingous I think.
We really need to write down the rules about what memory can be passed
down the block I/O path - XFS for example sends kmalloced memory down
which all the iSCSI implementations don't like at all.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can a non-sg scsi write command be more than PAGE_SIZE length?
2005-04-19 9:29 ` Can a non-sg scsi write command be more than PAGE_SIZE length? Christoph Hellwig
@ 2005-04-19 14:14 ` James Bottomley
0 siblings, 0 replies; 2+ messages in thread
From: James Bottomley @ 2005-04-19 14:14 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Olivier Galibert, Hack inc., SCSI Mailing List
On Tue, 2005-04-19 at 10:29 +0100, Christoph Hellwig wrote:
> Good question actually. I know XFS does passed vmalloc'ed memory down
> the block I/O path, but that's as a scatter/gather request. All non-s/g
> request should be contingous I think.
>
> We really need to write down the rules about what memory can be passed
> down the block I/O path - XFS for example sends kmalloced memory down
> which all the iSCSI implementations don't like at all.
We have two rules and two cases in every driver: sg and non-sg. (i.e.
use_sg == 0) this is where we do the distinction between dma_map_sg and
dma_map_single.
If someone wants a project, it should be possible to eject our non-sg
path. This would mean that all requests go as sg through the block
layer. The advantages would be
1) internally we would no longer care about kmalloc vs vmalloc memory
2) we wouldn't need to know the gfp flag when allocating internal
requests (block would bounce for us if necessary) thus we could kill the
scsi isa dma flag
3) We could strip the special casing out of every driver ...
4) it should simplify the I/O traversal paths
James
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-19 14:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20050419084730.GA96767@dspnet.fr.eu.org>
[not found] ` <20050419085008.GA9194@infradead.org>
[not found] ` <20050419092431.GA98975@dspnet.fr.eu.org>
2005-04-19 9:29 ` Can a non-sg scsi write command be more than PAGE_SIZE length? Christoph Hellwig
2005-04-19 14:14 ` James Bottomley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox