Re: Can a non-sg scsi write command be more than PAGE_SIZE length?
From: James Bottomley
Date: Tue Apr 19 2005 - 09:17:32 EST
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/