diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-12-19 20:02:25 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-02-19 14:47:29 -0500 |
commit | f8daa6e6d83f60a721752cb53433bfdc1503b45f (patch) | |
tree | 66798b2d2763a53acada47040c86f7c094430f0a /include/scsi/libsas.h | |
parent | b15ebe0b5d0b95aeb1d84cae3649df1e0e065e9b (diff) |
[SCSI] libsas: convert ha->state to flags
In preparation for adding new states (SAS_HA_DRAINING, SAS_HA_FROZEN),
convert ha->state into a set of flags.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include/scsi/libsas.h')
-rw-r--r-- | include/scsi/libsas.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index de63a664b5e5..8e402d5a0640 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h | |||
@@ -330,7 +330,6 @@ struct sas_ha_event { | |||
330 | 330 | ||
331 | enum sas_ha_state { | 331 | enum sas_ha_state { |
332 | SAS_HA_REGISTERED, | 332 | SAS_HA_REGISTERED, |
333 | SAS_HA_UNREGISTERED | ||
334 | }; | 333 | }; |
335 | 334 | ||
336 | struct sas_ha_struct { | 335 | struct sas_ha_struct { |
@@ -338,7 +337,7 @@ struct sas_ha_struct { | |||
338 | struct sas_ha_event ha_events[HA_NUM_EVENTS]; | 337 | struct sas_ha_event ha_events[HA_NUM_EVENTS]; |
339 | unsigned long pending; | 338 | unsigned long pending; |
340 | 339 | ||
341 | enum sas_ha_state state; | 340 | unsigned long state; |
342 | spinlock_t state_lock; | 341 | spinlock_t state_lock; |
343 | 342 | ||
344 | struct scsi_core core; | 343 | struct scsi_core core; |