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_classes.h | |
parent | 8f140b407f3be04e7202be9aa0cfef3006d14c9f (diff) |
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_classes.h')
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_classes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_classes.h b/drivers/infiniband/hw/ehca/ehca_classes.h index f64d42b08674..1d286d3cc2d5 100644 --- a/drivers/infiniband/hw/ehca/ehca_classes.h +++ b/drivers/infiniband/hw/ehca/ehca_classes.h @@ -277,6 +277,7 @@ void ehca_cleanup_mrmw_cache(void); extern spinlock_t ehca_qp_idr_lock; extern spinlock_t ehca_cq_idr_lock; +extern spinlock_t hcall_lock; extern struct idr ehca_qp_idr; extern struct idr ehca_cq_idr; |