diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-11-17 20:59:49 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-02-19 14:41:04 -0500 |
commit | b15ebe0b5d0b95aeb1d84cae3649df1e0e065e9b (patch) | |
tree | ff93ad5f8be5fe91c7e6cf4963253491ddd058fb /drivers/scsi/libsas/sas_init.c | |
parent | 756f173fb5fa90ec15222e80fb579288be7794fd (diff) |
[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>
Diffstat (limited to 'drivers/scsi/libsas/sas_init.c')
-rw-r--r-- | drivers/scsi/libsas/sas_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/libsas/sas_init.c b/drivers/scsi/libsas/sas_init.c index d81c3b1989f7..a435876f1f77 100644 --- a/drivers/scsi/libsas/sas_init.c +++ b/drivers/scsi/libsas/sas_init.c | |||
@@ -97,8 +97,7 @@ void sas_hae_reset(struct work_struct *work) | |||
97 | container_of(work, struct sas_ha_event, work); | 97 | container_of(work, struct sas_ha_event, work); |
98 | struct sas_ha_struct *ha = ev->ha; | 98 | struct sas_ha_struct *ha = ev->ha; |
99 | 99 | ||
100 | sas_begin_event(HAE_RESET, &ha->event_lock, | 100 | clear_bit(HAE_RESET, &ha->pending); |
101 | &ha->pending); | ||
102 | } | 101 | } |
103 | 102 | ||
104 | int sas_register_ha(struct sas_ha_struct *sas_ha) | 103 | int sas_register_ha(struct sas_ha_struct *sas_ha) |