mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
[SCSI] libsas: replace event locks with atomic bitops
The locks only served to make sure the pending event bitmask was updated consistently. Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
756f173fb5
commit
b15ebe0b5d
7 changed files with 23 additions and 60 deletions
|
@ -215,7 +215,6 @@ struct sas_discovery_event {
|
|||
};
|
||||
|
||||
struct sas_discovery {
|
||||
spinlock_t disc_event_lock;
|
||||
struct sas_discovery_event disc_work[DISC_NUM_EVENTS];
|
||||
unsigned long pending;
|
||||
u8 fanout_sas_addr[8];
|
||||
|
@ -272,7 +271,6 @@ struct asd_sas_event {
|
|||
*/
|
||||
struct asd_sas_phy {
|
||||
/* private: */
|
||||
/* protected by ha->event_lock */
|
||||
struct asd_sas_event port_events[PORT_NUM_EVENTS];
|
||||
struct asd_sas_event phy_events[PHY_NUM_EVENTS];
|
||||
|
||||
|
@ -337,7 +335,6 @@ enum sas_ha_state {
|
|||
|
||||
struct sas_ha_struct {
|
||||
/* private: */
|
||||
spinlock_t event_lock;
|
||||
struct sas_ha_event ha_events[HA_NUM_EVENTS];
|
||||
unsigned long pending;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue