linux-stable/drivers/scsi/device_handler
Martin Wilck ee8868c5c7 scsi: scsi_dh_alua: Retry RTPG on a different path after failure
If an RTPG fails, we can't infer anything wrt. the state of the ports in
the port group except that we were unable to reach the one port on which
the RTPG had failed. "offline" is just a secondary port state, which means
that we can't infer the state of any port in the PG from the failure (in
fact, even the failed port might still be in "active/optimized" primary
port access state).

Therefore, when we encounter an RTPG failure, we should retry the RTPG on a
different port. This avoids falsely setting port states to offline for
unreachable ports. To do this, ports on which an RTPG has failed are
temporarily set to "disabled" to avoid repeating the failed I/O on the same
target port. Once the RTPG has either succeeded on one port or failed on
all ports of the PG, the ports are enabled again.

Link: https://lore.kernel.org/r/20210514153214.5626-1-mwilck@suse.com
Signed-off-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-05-21 23:06:29 -04:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
scsi_dh_alua.c scsi: scsi_dh_alua: Retry RTPG on a different path after failure 2021-05-21 23:06:29 -04:00
scsi_dh_emc.c scsi: core: Introduce enum scsi_disposition 2021-04-15 22:44:40 -04:00
scsi_dh_hp_sw.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
scsi_dh_rdac.c scsi: core: Introduce enum scsi_disposition 2021-04-15 22:44:40 -04:00