]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: scsi_dh_alua: Return BLK_STS_AGAIN for ALUA transitioning state
authorHannes Reinecke <hare@suse.de>
Wed, 30 Sep 2020 08:02:54 +0000 (10:02 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Nov 2020 03:58:12 +0000 (22:58 -0500)
commit5eee7c08f88ca6b6ca0375525a745e91729d87fe
treef1adea276f9b09fb5cf5a63b415352eb66538dbc
parent5f9c483f9067a29af60ceb24da02f933ce4089dd
scsi: scsi_dh_alua: Return BLK_STS_AGAIN for ALUA transitioning state

When the ALUA state indicates transitioning we should not retry the command
immediately, but rather complete the command with BLK_STS_AGAIN to signal
the completion handler that it might be retried.  This allows multipathing
to redirect the command to another path if possible, and avoid stalls
during lengthy transitioning times.

Link: https://lore.kernel.org/r/20200930080256.90964-3-hare@suse.de
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/device_handler/scsi_dh_alua.c
drivers/scsi/scsi_lib.c