diff options
author | Martin Wilck <mwilck@suse.com> | 2021-01-11 17:25:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-07 16:47:40 +0300 |
commit | ad19a1fd55edb5ea7822a7f12f96fa02ffd97195 (patch) | |
tree | a6095dafa790e0ab4dfab38c7750724470868e7e /drivers/scsi/mvme147.c | |
parent | 72e7afeba7725b8457f24955ba3d81459f8d709a (diff) | |
download | linux-ad19a1fd55edb5ea7822a7f12f96fa02ffd97195.tar.xz |
scsi: scsi_transport_srp: Don't block target in failfast state
[ Upstream commit 72eeb7c7151302ef007f1acd018cbf6f30e50321 ]
If the port is in SRP_RPORT_FAIL_FAST state when srp_reconnect_rport() is
entered, a transition to SDEV_BLOCK would be illegal, and a kernel WARNING
would be triggered. Skip scsi_target_block() in this case.
Link: https://lore.kernel.org/r/20210111142541.21534-1-mwilck@suse.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/scsi/mvme147.c')
0 files changed, 0 insertions, 0 deletions