summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid/rkt.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2020-07-28 15:48:33 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2020-07-31 03:15:26 +0200
commitbf1a28f92a8b00ee8ce48cc11338980e31ddb7b3 (patch)
treeef98675608a7011c683029c79ad8f133a6a5c0e0 /drivers/scsi/aacraid/rkt.c
parentscsi: ufs-mediatek: Apply DELAY_AFTER_LPM quirk to Micron devices (diff)
downloadlinux-bf1a28f92a8b00ee8ce48cc11338980e31ddb7b3.tar.xz
linux-bf1a28f92a8b00ee8ce48cc11338980e31ddb7b3.zip
scsi: scsi_transport_srp: Sanitize scsi_target_block/unblock sequences
The SCSI midlayer does not allow state transitions from SDEV_BLOCK to SDEV_BLOCK so calling scsi_target_block() from __rport_fast_io_fail() is wrong as the port is already blocked. Similarly, we don't need to call scsi_target_unblock() afterwards as the function has already done this. Link: https://lore.kernel.org/r/20200728134833.42547-1-hare@suse.de Reviewed-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Laurence Oberman <loberman@redhat.com> Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/aacraid/rkt.c')
0 files changed, 0 insertions, 0 deletions