scsi: scsi_debug: Add support for injecting SCSI_MLQUEUE_HOST_BUSY
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 7 Dec 2017 22:56:18 +0000 (14:56 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 Dec 2017 02:50:51 +0000 (21:50 -0500)
commit7ee6d1b4357ac2bad12cb65a4b972d6da235c83a
tree43b87a6253ce7643e50111a7914ee2d25497edb7
parent0b7509c76d010128b9ad133a742fb32c71e426d4
scsi: scsi_debug: Add support for injecting SCSI_MLQUEUE_HOST_BUSY

Although it is important to be able to trigger the code in the SCSI core
for SCSI_MLQUEUE_HOST_BUSY handling, currently it is nontrivial to
trigger that code. Hence this patch that adds a new error injection
option to the scsi_debug driver for making the .queue_rq()
implementation of this driver return SCSI_MLQUEUE_HOST_BUSY.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Douglas Gilbert <dgilbert@interlog.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c