mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
[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>
This commit is contained in:
parent
b15ebe0b5d
commit
f8daa6e6d8
3 changed files with 4 additions and 5 deletions
|
@ -330,7 +330,6 @@ struct sas_ha_event {
|
|||
|
||||
enum sas_ha_state {
|
||||
SAS_HA_REGISTERED,
|
||||
SAS_HA_UNREGISTERED
|
||||
};
|
||||
|
||||
struct sas_ha_struct {
|
||||
|
@ -338,7 +337,7 @@ struct sas_ha_struct {
|
|||
struct sas_ha_event ha_events[HA_NUM_EVENTS];
|
||||
unsigned long pending;
|
||||
|
||||
enum sas_ha_state state;
|
||||
unsigned long state;
|
||||
spinlock_t state_lock;
|
||||
|
||||
struct scsi_core core;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue