]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
scsi: smartpqi: change return value for LUN reset operations
authorKevin Barnett <kevin.barnett@hpe.com>
Wed, 3 May 2017 23:54:18 +0000 (18:54 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 26 Jul 2017 04:06:56 +0000 (21:06 -0700)
Orabug: 2619102126447813

change return value for controller offline to be consistent
with the rest of the driver.

Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Signed-off-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 4e8415e3861e8b73a47c92e09e044b9dbc8ee37f)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/scsi/smartpqi/smartpqi_init.c

index f80e2042af27882801a93566dc13c7b287dc0b70..61bc38bfec33977bf912dfaf888768a767e1cffc 100644 (file)
@@ -5066,7 +5066,7 @@ static int pqi_wait_for_lun_reset_completion(struct pqi_ctrl_info *ctrl_info,
 
                pqi_check_ctrl_health(ctrl_info);
                if (pqi_ctrl_offline(ctrl_info)) {
-                       rc = -ETIMEDOUT;
+                       rc = -ENXIO;
                        break;
                }
        }