From: Don Brace Date: Fri, 6 May 2016 19:17:16 +0000 (-0700) Subject: hpsa: correct ioaccel state change operation X-Git-Tag: v4.1.12-92~161^2~4 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=73399e07e3e1ad58672c635c2a4a33434fb25197;p=users%2Fjedix%2Flinux-maple.git hpsa: correct ioaccel state change operation offload_to_be_enabled also needs to be set to 0 during a state change. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Reviewed-by: Johannes Thumshirn Signed-off-by: Don Brace Orabug: 23064595 Signed-off-by: Manjunath Govindashetty --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 7221d956af653..306168d4da06b 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -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,