Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=96db0e0335c7981911bd7efc5c79e82d2358c0fc
Commit:     96db0e0335c7981911bd7efc5c79e82d2358c0fc
Parent:     09f60f8f54c5e2391f0b7c38dccd7b00d83587ab
Author:     Roland Dreier <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 30 10:53:54 2007 -0700
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Tue Oct 30 10:53:54 2007 -0700

    IB/mlx4: Lock SQ lock in mlx4_ib_post_send()
    
    Because of a typo, mlx4_ib_post_send() takes the same lock rq.lock as
    mlx4_ib_post_recv().  Correct the code so the intended sq.lock is
    taken when posting a send.
    
    Noticed by Yossi Leybovitch and pointed out by Jack Morgenstein from
    Mellanox.
    
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
---
 drivers/infiniband/hw/mlx4/qp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c
index 6b33224..8cba9c5 100644
--- a/drivers/infiniband/hw/mlx4/qp.c
+++ b/drivers/infiniband/hw/mlx4/qp.c
@@ -1282,7 +1282,7 @@ int mlx4_ib_post_send(struct ib_qp *ibqp, struct 
ib_send_wr *wr,
        int size;
        int i;
 
-       spin_lock_irqsave(&qp->rq.lock, flags);
+       spin_lock_irqsave(&qp->sq.lock, flags);
 
        ind = qp->sq.head;
 
@@ -1448,7 +1448,7 @@ out:
                               (qp->sq.wqe_cnt - 1));
        }
 
-       spin_unlock_irqrestore(&qp->rq.lock, flags);
+       spin_unlock_irqrestore(&qp->sq.lock, flags);
 
        return err;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to