scsi: scsi_debug: do_device_access add sg offset argument
authorDouglas Gilbert <dgilbert@interlog.com>
Sat, 23 Dec 2017 17:48:12 +0000 (12:48 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Jan 2018 04:25:05 +0000 (23:25 -0500)
commit0a7e69c7d4a302a66d0210e1a8f6efbffbc887b5
tree3aa51f916a1f5ebcf8236ff810d4e0143dc6efc1
parentb7e24581f3eec1d50bbdfe7bb1be6118d5bd72a3
scsi: scsi_debug: do_device_access add sg offset argument

WRITE SCATTERED needs to take several "bites" out of the data-out buffer.
Expand the do_device_access() function to take a sg_skip argument.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c