]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9d42e1e5b05a640b448c7b60136d9b4c15dc413
tree43b87a6253ce7643e50111a7914ee2d25497edb7
parente4a8f4a45dc77e5fa757106210ba292dc4d28fd3
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