]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit59fd6ed19219ba8d375e983b41b9474a65f050c0
tree276234e4b0e12397e6f4034c0336efb49e9fb19c
parent7a4e66cdfecb393b1e6512e9d608cc8f9b6b1202
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