scsi: core: Return BLK_STS_TRANSPORT for ALUA transitioning
authorHannes Reinecke <hare@suse.de>
Tue, 24 May 2022 05:56:31 +0000 (07:56 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 2 Jun 2022 02:38:53 +0000 (22:38 -0400)
When the 'ALUA state transitioning' sense code is returned we cannot use
BLK_STS_AGAIN, as this has a very specific use-case.  So return
BLK_STS_TRANSPORT here.

Link: https://lore.kernel.org/r/20220524055631.85480-3-hare@suse.de
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c

index e9db7da..6ffc9e4 100644 (file)
@@ -779,7 +779,7 @@ static void scsi_io_completion_action(struct scsi_cmnd *cmd, int result)
                                        action = ACTION_DELAYED_RETRY;
                                        break;
                                case 0x0a: /* ALUA state transition */
-                                       blk_stat = BLK_STS_AGAIN;
+                                       blk_stat = BLK_STS_TRANSPORT;
                                        fallthrough;
                                default:
                                        action = ACTION_FAIL;