diff options
author | Matthias Kaehlcke <matthias.kaehlcke@gmail.com> | 2007-07-09 15:00:11 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-07-14 20:10:19 -0400 |
commit | 0c2cc4337968f7aab91a91b8d5889982e3a3bd0d (patch) | |
tree | 96843d958292098ee5b821658e20583a1d35504b /drivers/scsi/megaraid/megaraid_mbox.h | |
parent | 5fa0f5e47a87ceb8a3269b28fa14764b37364f63 (diff) |
[SCSI] megaraid_mbox: use mutex instead of semaphore
The Megaraid Mailbox driver uses a semaphore as mutex. Use the mutex API
instead of the (binary) semaphore.
Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Acked-by: "Patro, Sumant" <Sumant.Patro@lsi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_mbox.h')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_mbox.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid/megaraid_mbox.h b/drivers/scsi/megaraid/megaraid_mbox.h index 9de803cebd4b..626459d1e902 100644 --- a/drivers/scsi/megaraid/megaraid_mbox.h +++ b/drivers/scsi/megaraid/megaraid_mbox.h | |||
@@ -168,7 +168,7 @@ typedef struct { | |||
168 | * @hw_error : set if FW not responding | 168 | * @hw_error : set if FW not responding |
169 | * @fast_load : If set, skip physical device scanning | 169 | * @fast_load : If set, skip physical device scanning |
170 | * @channel_class : channel class, RAID or SCSI | 170 | * @channel_class : channel class, RAID or SCSI |
171 | * @sysfs_sem : semaphore to serialize access to sysfs res. | 171 | * @sysfs_mtx : mutex to serialize access to sysfs res. |
172 | * @sysfs_uioc : management packet to issue FW calls from sysfs | 172 | * @sysfs_uioc : management packet to issue FW calls from sysfs |
173 | * @sysfs_mbox64 : mailbox packet to issue FW calls from sysfs | 173 | * @sysfs_mbox64 : mailbox packet to issue FW calls from sysfs |
174 | * @sysfs_buffer : data buffer for FW commands issued from sysfs | 174 | * @sysfs_buffer : data buffer for FW commands issued from sysfs |
@@ -208,7 +208,7 @@ typedef struct { | |||
208 | int hw_error; | 208 | int hw_error; |
209 | int fast_load; | 209 | int fast_load; |
210 | uint8_t channel_class; | 210 | uint8_t channel_class; |
211 | struct semaphore sysfs_sem; | 211 | struct mutex sysfs_mtx; |
212 | uioc_t *sysfs_uioc; | 212 | uioc_t *sysfs_uioc; |
213 | mbox64_t *sysfs_mbox64; | 213 | mbox64_t *sysfs_mbox64; |
214 | caddr_t sysfs_buffer; | 214 | caddr_t sysfs_buffer; |