[PATCH V4 15/16] scsi: wd33c93: use sg helper to operate scatterlist

Christoph Hellwig hch at lst.de
Mon Jun 17 08:29:37 UTC 2019


On Mon, Jun 17, 2019 at 11:03:48AM +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't enough for the whole request.
> 
> Signed-off-by: Ming Lei <ming.lei at redhat.com>

Looks good,

Reviewed-by: Christoph Hellwig <hch at lst.de>


More information about the devel mailing list