Signed-off-by: Xiao Jia <[email protected]>
---
 kern/drivers/net/mlx4/cq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kern/drivers/net/mlx4/cq.c b/kern/drivers/net/mlx4/cq.c
index fe73595..762faca 100644
--- a/kern/drivers/net/mlx4/cq.c
+++ b/kern/drivers/net/mlx4/cq.c
@@ -126,13 +126,13 @@ void mlx4_cq_event(struct mlx4_dev *dev, uint32_t cqn, 
int event_type)
        struct mlx4_cq_table *cq_table = &mlx4_priv(dev)->cq_table;
        struct mlx4_cq *cq;
 
-       spin_lock(&cq_table->lock);
+       spin_lock_irqsave(&cq_table->lock);
 
        cq = radix_tree_lookup(&cq_table->tree, cqn & (dev->caps.num_cqs - 1));
        if (cq)
                atomic_inc(&cq->refcount);
 
-       spin_unlock(&cq_table->lock);
+       spin_unlock_irqsave(&cq_table->lock);
 
        if (!cq) {
                mlx4_warn(dev, "Async event for bogus CQ %08x\n", cqn);
-- 
2.6.0.rc2.230.g3dd15c0

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to