summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.h
diff options
context:
space:
mode:
authorDon Brace <don.brace@microsemi.com>2016-04-28 00:14:17 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2016-04-30 01:08:24 +0200
commitba74fdc411b84064d7abe4b10d0708f6dad03eb2 (patch)
tree71eea04b9c9745857cd4399304285335904f1b08 /drivers/scsi/hpsa.h
parenthpsa: correct ioaccel2 error procecssing. (diff)
downloadlinux-ba74fdc411b84064d7abe4b10d0708f6dad03eb2.tar.xz
linux-ba74fdc411b84064d7abe4b10d0708f6dad03eb2.zip
hpsa: correct handling of HBA device removal
Need to report HBA device removal faster than the event handler polling interval. Stop I/O to the removed disk and wait for all I/O operations to flush before removing the device. 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>
Diffstat (limited to '')
-rw-r--r--drivers/scsi/hpsa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h
index d06bb7417e36..a1487e67f7a1 100644
--- a/drivers/scsi/hpsa.h
+++ b/drivers/scsi/hpsa.h
@@ -63,6 +63,7 @@ struct hpsa_scsi_dev_t {
unsigned char scsi3addr[8]; /* as presented to the HW */
u8 physical_device : 1;
u8 expose_device;
+ u8 removed : 1; /* device is marked for death */
#define RAID_CTLR_LUNID "\0\0\0\0\0\0\0\0"
unsigned char device_id[16]; /* from inquiry pg. 0x83 */
u64 sas_address;