OSDN Git Service

hpsa: correct ioaccel2 error procecssing.
authorDon Brace <don.brace@microsemi.com>
Wed, 27 Apr 2016 22:14:07 +0000 (17:14 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 29 Apr 2016 23:08:24 +0000 (19:08 -0400)
set offload_to_be_enabled to 0 when an ioaccel2 error is processed.

Before, an ioaccel completion error would turn of ioaccel but a rescan
would turn it back on again.

Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c

index 57f7062..4f8e328 100644 (file)
@@ -2360,8 +2360,10 @@ static void process_ioaccel2_completion(struct ctlr_info *h,
                c2->error_data.serv_response ==
                        IOACCEL2_SERV_RESPONSE_FAILURE) {
                if (c2->error_data.status ==
-                       IOACCEL2_STATUS_SR_IOACCEL_DISABLED)
+                       IOACCEL2_STATUS_SR_IOACCEL_DISABLED) {
                        dev->offload_enabled = 0;
+                       dev->offload_to_be_enabled = 0;
+               }
 
                return hpsa_retry_cmd(h, c);
        }