]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/infiniband/hw/mthca/mthca_cq.c
IB/mthca: Make all device methods truly reentrant
[linux-2.6.git] / drivers / infiniband / hw / mthca / mthca_cq.c
index 87a8f1166a3bd86c9c416a91a2c435c0cc27d67a..3e27a084257e9f23b7a4fba49561e15cfddf5b91 100644 (file)
@@ -822,6 +822,7 @@ int mthca_init_cq(struct mthca_dev *dev, int nent,
        spin_lock_init(&cq->lock);
        cq->refcount = 1;
        init_waitqueue_head(&cq->wait);
+       mutex_init(&cq->mutex);
 
        memset(cq_context, 0, sizeof *cq_context);
        cq_context->flags           = cpu_to_be32(MTHCA_CQ_STATUS_OK      |