diff options
author | Joachim Fenkes <fenkes@de.ibm.com> | 2007-07-09 09:31:10 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-07-09 23:12:27 -0400 |
commit | 26ed687fdd541c2542b79dcd75fb2c82eb36f189 (patch) | |
tree | 45d5ad42b6b9259f273cc274d0fbf18a6d169e91 /drivers/infiniband/hw/ehca/ehca_classes.h | |
parent | 28db6beb420c756c61dd44d9f2786a0677159e74 (diff) |
IB/ehca: Change idr spinlocks into rwlocks
This eliminates lock contention among IRQs as well as the need to
disable IRQs around idr_find, because there are no IRQ writers.
Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ehca/ehca_classes.h')
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_classes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_classes.h b/drivers/infiniband/hw/ehca/ehca_classes.h index 8580f2a0ea57..f1e0db2ff16c 100644 --- a/drivers/infiniband/hw/ehca/ehca_classes.h +++ b/drivers/infiniband/hw/ehca/ehca_classes.h | |||
@@ -293,8 +293,8 @@ void ehca_cleanup_av_cache(void); | |||
293 | int ehca_init_mrmw_cache(void); | 293 | int ehca_init_mrmw_cache(void); |
294 | void ehca_cleanup_mrmw_cache(void); | 294 | void ehca_cleanup_mrmw_cache(void); |
295 | 295 | ||
296 | extern spinlock_t ehca_qp_idr_lock; | 296 | extern rwlock_t ehca_qp_idr_lock; |
297 | extern spinlock_t ehca_cq_idr_lock; | 297 | extern rwlock_t ehca_cq_idr_lock; |
298 | extern struct idr ehca_qp_idr; | 298 | extern struct idr ehca_qp_idr; |
299 | extern struct idr ehca_cq_idr; | 299 | extern struct idr ehca_cq_idr; |
300 | 300 | ||