]> git.baikalelectronics.ru Git - kernel.git/commit
IPoIB: Fix send lockup due to missed TX completion
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Tue, 26 Feb 2013 15:46:27 +0000 (15:46 +0000)
committerRoland Dreier <roland@purestorage.com>
Sat, 23 Mar 2013 01:01:04 +0000 (18:01 -0700)
commit6b1298792d7aa003656dc5c388e42fd9384b7970
tree01026c06a9b3adc0d0b8f9f4349a24f9041ce8c9
parent3829be578a2ef96ca061ccf37a65232d261a8e76
IPoIB: Fix send lockup due to missed TX completion

Commit fa0130b1db35 ("IPoIB: Fix TX queue lockup with mixed UD/CM
traffic") attempts to solve an issue where unprocessed UD send
completions can deadlock the netdev.

The patch doesn't fully resolve the issue because if more than half
the tx_outstanding's were UD and all of the destinations are RC
reachable, arming the CQ doesn't solve the issue.

This patch uses the IB_CQ_REPORT_MISSED_EVENTS on the
ib_req_notify_cq().  If the rc is above 0, the UD send cq completion
callback is called directly to re-arm the send completion timer.

This issue is seen in very large parallel filesystem deployments
and the patch has been shown to correct the issue.

Cc: <stable@vger.kernel.org>
Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c