]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
hpsa: correct ioaccel state change operation
authorDon Brace <don.brace@microsemi.com>
Fri, 6 May 2016 19:17:16 +0000 (12:17 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 22 May 2016 21:50:34 +0000 (14:50 -0700)
offload_to_be_enabled also needs to be set to 0 during a state
change.

Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Orabug: 23064595
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/scsi/hpsa.c

index 7221d956af653b50b2dcbe44f2c61bd6f4c3854c..306168d4da06b23f269b676a78249963b97ac5ad 100644 (file)
@@ -8324,8 +8324,10 @@ static void hpsa_ack_ctlr_events(struct ctlr_info *h)
                        event_type = "configuration change";
                /* Stop sending new RAID offload reqs via the IO accelerator */
                scsi_block_requests(h->scsi_host);
-               for (i = 0; i < h->ndevices; i++)
+               for (i = 0; i < h->ndevices; i++) {
                        h->dev[i]->offload_enabled = 0;
+                       h->dev[i]->offload_to_be_enabled = 0;
+               }
                hpsa_drain_accel_commands(h);
                /* Set 'accelerator path config change' bit */
                dev_warn(&h->pdev->dev,