diff options
author | Stefan Roscher <stefan.roscher@de.ibm.com> | 2007-05-09 13:47:56 +0200 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-05-14 13:38:11 -0700 |
commit | 5d88278e3bdb6f2e4ed43306659e930ecd715f0c (patch) | |
tree | 60c856cf49531a23c0323a9146818932f62c6766 /drivers/infiniband/hw/ehca/ehca_main.c | |
parent | 8f140b407f3be04e7202be9aa0cfef3006d14c9f (diff) | |
download | talos-obmc-linux-5d88278e3bdb6f2e4ed43306659e930ecd715f0c.tar.gz talos-obmc-linux-5d88278e3bdb6f2e4ed43306659e930ecd715f0c.zip |
IB/ehca: Serialize hypervisor calls in ehca_register_mr()
Some pSeries hypervisor versions show a race condition in the allocate
MR hCall. Serialize this call per adapter to circumvent this problem.
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_main.c')
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c index fe90e7454560..b917cc130e48 100644 --- a/drivers/infiniband/hw/ehca/ehca_main.c +++ b/drivers/infiniband/hw/ehca/ehca_main.c @@ -98,6 +98,7 @@ MODULE_PARM_DESC(scaling_code, spinlock_t ehca_qp_idr_lock; spinlock_t ehca_cq_idr_lock; +spinlock_t hcall_lock; DEFINE_IDR(ehca_qp_idr); DEFINE_IDR(ehca_cq_idr); @@ -817,6 +818,7 @@ int __init ehca_module_init(void) idr_init(&ehca_cq_idr); spin_lock_init(&ehca_qp_idr_lock); spin_lock_init(&ehca_cq_idr_lock); + spin_lock_init(&hcall_lock); INIT_LIST_HEAD(&shca_list); spin_lock_init(&shca_list_lock); |