scsi: scsi_debug: add cdb_len parameter
authorDouglas Gilbert <dgilbert@interlog.com>
Tue, 5 Dec 2017 05:05:49 +0000 (00:05 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 Dec 2017 02:06:59 +0000 (21:06 -0500)
commit9b760fd8776475561ba7e541dc305a8703cf4d3e
tree236587b29bfa6ed30298e59cfbb410467d94c1ec
parent4b1d8e78615d1ab19ac85aef4d61c47f175ecf50
scsi: scsi_debug: add cdb_len parameter

While testing "sd: Micro-optimize READ / WRITE CDB encoding" patches it
was helpful to check various code paths associated with READ/WRITE 6, 10
and 16 byte cdb variants. There seems to be no user space "knobs" to
twiddle use_10_for_rw and friends in the scsi_device structure.  So add
a parameter to scsi_debug called "cdb_len" for this purpose.

[mkp: fixed typo]

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