On 1/11/19 1:08 AM, Bart Van Assche wrote:
From: "Martin K. Petersen" <[email protected]>

Create a helper function for each of the 6, 10, 16 and 32-byte
READ/WRITE variants and use those when setting up reads and writes.

Signed-off-by: Martin K. Petersen <[email protected]>
[ bvanassche: ported this patch from kernel v4.11 to kernel v5.0 and made
   function names shorter. ]
Signed-off-by: Bart Van Assche <[email protected]>
---
  drivers/scsi/sd.c | 167 +++++++++++++++++++++++++---------------------
  1 file changed, 92 insertions(+), 75 deletions(-)

Reviewed-by: Hannes Reinecke <[email protected]>

Cheers,

Hannes
--
Dr. Hannes Reinecke                Teamlead Storage & Networking
[email protected]                                   +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)

Reply via email to