]> www.infradead.org Git - users/jedix/linux-maple.git/commit
storvsc: don't assume SG list is contiguous
authorAruna Ramakrishna <aruna.ramakrishna@oracle.com>
Tue, 29 Aug 2017 03:23:53 +0000 (20:23 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 27 Oct 2017 04:17:32 +0000 (21:17 -0700)
commit8b7ea6a165d99ee6b3b49b4861999acc2055c2e1
tree28a370fe6a0b8c21ed6a89d72e9f02a4755ed330
parent4d7b345aa33f47579be4149efb0137168c7b9414
storvsc: don't assume SG list is contiguous

Scatterlists are contiguous if they're limited to a page; but for large
I/Os, it's possible that the scatterlists span pages, in which case the
pages will not be physically contiguous - they will be chained together.
The MS patch (link below) fixes the wrong assumption in do_bounce_buffer()
that scatterlists are always contiguous, so it's a good fix to port, in
general.

Orabug: 26492697

MS patch:
https://github.com/LIS/lis-next/commit/a13bbc4ab81e459f635237a938f89737300ecfa1

Signed-off-by: Aruna Ramakrishna <aruna.ramakrishna@oracle.com>
Reviewed-by: Joe Slember <joe.slember@oracle.com>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/storvsc_drv.c