IB/ipath: Fix lost UD send work request
authorRalph Campbell <ralph.campbell@qlogic.com>
Fri, 15 Aug 2008 18:23:47 +0000 (11:23 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 15 Aug 2008 18:23:47 +0000 (11:23 -0700)
commit7ec01ff950c455aa1f1ccfaf347eb1aa9ec160d5
tree3cde8a28f0c1418bc520b705c35d7c4b5de9ef10
parentffaa5b984a9322bbd5d9a7f0814ca2ce70feebe5
IB/ipath: Fix lost UD send work request

If a UD QP has some work requests queued to be sent by the DMA engine
followed by a local loopback work request, we have to wait for the
previous work requests to finish or the completion for the local
loopback work request would be generated out of order.  The problem
was that the work request queue pointer was already updated so that
the request would not be processed when the DMA queue drained.

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