scsi: scsi_debug: reset injection flags for every_nth > 0
authorMartin Wilck <mwilck@suse.com>
Mon, 29 Jan 2018 23:35:52 +0000 (00:35 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 14 Feb 2018 02:49:19 +0000 (21:49 -0500)
commitf9ba7af8105f792d2204742810f9647aa32699cd
treef7b84d3e2b9da629b35b8ecddd21ae88526475d1
parent80c49563e2506731372c04eec6f8c853d8b0151f
scsi: scsi_debug: reset injection flags for every_nth > 0

If every_nth > 0, the injection flags must be reset for commands that
aren't supposed to fail (i.e. that aren't "nth"). Otherwise, commands
will continue to fail, like in the every_nth < 0 case.

Signed-off-by: Martin Wilck <mwilck@suse.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c