diff options
author | Scott Teel <scott.teel@hp.com> | 2014-02-18 13:57:05 -0600 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2014-03-15 10:19:07 -0700 |
commit | e863d68e4881b080267ea2a6f97dfc658f0ad4fb (patch) | |
tree | ec639ce4d9c9a85dadcaea681dde71627d07e11c /drivers/scsi/hpsa.h | |
parent | da0697bd3075598f7990002dc46f208d722b6160 (diff) | |
download | talos-obmc-linux-e863d68e4881b080267ea2a6f97dfc658f0ad4fb.tar.gz talos-obmc-linux-e863d68e4881b080267ea2a6f97dfc658f0ad4fb.zip |
[SCSI] hpsa: rescan devices on ioaccel2 error
Allow driver to schedule a rescan whenever a request fails on the ioaccel2 path.
This eliminates the possibility of driver getting stuck in non-ioaccel mode.
IOaccel mode (HP SSD Smart Path) is disabled by driver upon error detection.
Driver relied on idea that request would be retried through normal path, and a
subsequent error would occur on that path, and be processed by controller
firmware. As part of that process, controller disables ioaccel mode and later
reinstates it, signalling driver to change modes.
In some error cases, the error will not duplicate on the standard path,
so the driver could get stuck in non-ioaccel mode.
To avoid that, we allow driver to request a rescan during the next run of the
rescan thread.
Signed-off-by: Scott Teel <scott.teel@hp.com>
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/hpsa.h')
-rw-r--r-- | drivers/scsi/hpsa.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h index 1d3340dbe310..2e7521fdc344 100644 --- a/drivers/scsi/hpsa.h +++ b/drivers/scsi/hpsa.h @@ -182,6 +182,7 @@ struct ctlr_info { #define HPSATMF_LOG_QRY_ASYNC (1 << 25) u32 events; int acciopath_status; + int drv_req_rescan; /* flag for driver to request rescan event */ }; #define HPSA_ABORT_MSG 0 #define HPSA_DEVICE_RESET_MSG 1 |