summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.h
diff options
context:
space:
mode:
authorDon Brace <don.brace@microsemi.com>2019-05-07 20:32:26 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2019-06-19 01:46:18 +0200
commit9e33f0d5788fe4aaa42b1abf6536d046c724a8cd (patch)
treea7401b47abe79adeebb1c78442ab96b0d56b89c5 /drivers/scsi/hpsa.h
parentscsi: hpsa: wait longer for ptraid commands (diff)
downloadlinux-9e33f0d5788fe4aaa42b1abf6536d046c724a8cd.tar.xz
linux-9e33f0d5788fe4aaa42b1abf6536d046c724a8cd.zip
scsi: hpsa: do-not-complete-cmds-for-deleted-devices
Close up a rare multipath issue. Close up small hole where a command completes after a device has been removed from SML and before the device is re-added. - Mark device as removed in slave_destroy - Do not complete commands for deleted devices Reviewed-by: Justin Lindley <justin.lindley@microsemi.com> Reviewed-by: David Carroll <david.carroll@microsemi.com> Reviewed-by: Scott Teel <scott.teel@microsemi.com> Signed-off-by: Don Brace <don.brace@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hpsa.h')
-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 75210de71917..a013c16af5f1 100644
--- a/drivers/scsi/hpsa.h
+++ b/drivers/scsi/hpsa.h
@@ -65,6 +65,7 @@ struct hpsa_scsi_dev_t {
u8 physical_device : 1;
u8 expose_device;
u8 removed : 1; /* device is marked for death */
+ u8 was_removed : 1; /* device actually removed */
#define RAID_CTLR_LUNID "\0\0\0\0\0\0\0\0"
unsigned char device_id[16]; /* from inquiry pg. 0x83 */
u64 sas_address;