]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
scsi: scsi_debug: add cmd abort option to every_nth
authorDouglas Gilbert <dgilbert@interlog.com>
Sat, 21 Jul 2018 05:10:04 +0000 (01:10 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 31 Jul 2018 03:17:53 +0000 (23:17 -0400)
commit7382f9d8dc0db271da32787fd8559f1ec9f3f4f9
tree3951b778631a54f36fe41cb9f0443721be18f417
parent4dc98c1995482262e70e83ef029135247fafe0f2
scsi: scsi_debug: add cmd abort option to every_nth

This patch is motivated by a response in the thread:

  Re: [PATCH 0/5]stop normal completion path entering a timeout req

by Jianchao Wang . It generalizes the error injection of
blk_abort_request() to use scsi_debug's "every_nth" mechanism.  Ref with
original patch to scsi_debug:

https://lore.kernel.org/lkml/a68ad043-26a1-d3d8-2009-504ba4230e0f@oracle.com/

Also convert two vmalloc/memset(0) to vzalloc() calls.

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