IB/ipath: Fix race with ACK retry timeout list management
authorRalph Campbell <ralph.campbell@qlogic.com>
Fri, 26 Oct 2007 15:02:39 +0000 (08:02 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 13 Nov 2007 23:26:58 +0000 (15:26 -0800)
commitf4ad1bcc4425a772ea584e1f24abadc64c2b839f
tree374f7462a229e0506aa54516cf1029a95dc9adb4
parenta6e7550d8f73d6b75c20afff321f0f06fe144775
IB/ipath: Fix race with ACK retry timeout list management

When an ACK is received, the QP is removed from the timeout list and
then if there are still pending send WQEs, the QP is put back on the
timeout list. It is possible that another post send has put the QP on
the timeout list thus, a check needs to be made before trying to do it
again or the list is corrupted.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_rc.c