Re: [PATCH V4 01/16] scsi: vmw_pscsi: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
On Mon, Jun 17, 2019 at 11:03:34AM +0800, Ming Lei wrote: > Use the scatterlist iterators and remove direct indexing of the scatterlist > array. > > This way allows us to pre-allocate one small scatterlist, which can be chained > with one runtime allocated scatterlist if the pre-allocated one isn'

[PATCH V4 01/16] scsi: vmw_pscsi: use sg helper to operate scatterlist

2019-06-16 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Reviewed-by: Ewan D. Milne Signed-