IB/mlx4: Lock SQ lock in mlx4_ib_post_send()
authorRoland Dreier <rolandd@cisco.com>
Tue, 30 Oct 2007 17:53:54 +0000 (10:53 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 30 Oct 2007 17:53:54 +0000 (10:53 -0700)
commit96db0e0335c7981911bd7efc5c79e82d2358c0fc
tree276234e4b0e12397e6f4034c0336efb49e9fb19c
parent09f60f8f54c5e2391f0b7c38dccd7b00d83587ab
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 <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/qp.c