aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ehca/ehca_classes.h
diff options
context:
space:
mode:
authorJoachim Fenkes <fenkes@de.ibm.com>2007-07-09 09:31:10 -0400
committerRoland Dreier <rolandd@cisco.com>2007-07-09 23:12:27 -0400
commit26ed687fdd541c2542b79dcd75fb2c82eb36f189 (patch)
tree45d5ad42b6b9259f273cc274d0fbf18a6d169e91 /drivers/infiniband/hw/ehca/ehca_classes.h
parent28db6beb420c756c61dd44d9f2786a0677159e74 (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.h4
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);
293int ehca_init_mrmw_cache(void); 293int ehca_init_mrmw_cache(void);
294void ehca_cleanup_mrmw_cache(void); 294void ehca_cleanup_mrmw_cache(void);
295 295
296extern spinlock_t ehca_qp_idr_lock; 296extern rwlock_t ehca_qp_idr_lock;
297extern spinlock_t ehca_cq_idr_lock; 297extern rwlock_t ehca_cq_idr_lock;
298extern struct idr ehca_qp_idr; 298extern struct idr ehca_qp_idr;
299extern struct idr ehca_cq_idr; 299extern struct idr ehca_cq_idr;
300 300