]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: error: alua: I/O errors for ALUA state transitions
authorRajashekhar M A <rajs@netapp.com>
Fri, 6 Jun 2025 13:59:24 +0000 (15:59 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 10 Jun 2025 02:02:13 +0000 (22:02 -0400)
commit5c3ba81923e02adae354ec8afd006f93289b4a3c
tree691629f31fb08d8db523b520160b4679798d9fc2
parentb2f966568faaad326de97481096d0f3dc0971c43
scsi: error: alua: I/O errors for ALUA state transitions

When a host is configured with a few LUNs and I/O is running, injecting
FC faults repeatedly leads to path recovery problems.  The LUNs have 4
paths each and 3 of them come back active after say an FC fault which
makes 2 of the paths go down, instead of all 4. This happens after
several iterations of continuous FC faults.

Reason here is that we're returning an I/O error whenever we're
encountering sense code 06/04/0a (LOGICAL UNIT NOT ACCESSIBLE, ASYMMETRIC
ACCESS STATE TRANSITION) instead of retrying.

Signed-off-by: Rajashekhar M A <rajs@netapp.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20250606135924.27397-1-hare@kernel.org
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_error.c