linux/drivers/infiniband
Roland Dreier 31c02e2157 IPoIB: Avoid using stale last_send counter when reaping AHs
The comparisons of priv->tx_tail to ah->last_send in ipoib_free_ah()
and ipoib_post_receive() are slightly unsafe, because priv->tx_lock is
not held and hence a stale value of ah->last_send might be used, which
would lead to freeing an AH before the driver was really done with it.
The simple way to fix this is to the optimization of early free from
ipoib_free_ah() and unconditionally queue AHs for reaping, and then
take priv->tx_lock in __ipoib_reap_ah().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2006-06-17 20:37:34 -07:00
..
core IB/mad: Check GID/LID when matching requests 2006-06-17 20:37:34 -07:00
hw IB/mthca: Convert FW commands to use wait_for_completion_timeout() 2006-06-17 20:37:30 -07:00
ulp IPoIB: Avoid using stale last_send counter when reaping AHs 2006-06-17 20:37:34 -07:00
Kconfig IB: address translation to map IP toIB addresses (GIDs) 2006-06-17 20:37:28 -07:00
Makefile IB/ipath: kbuild infrastructure 2006-03-31 13:14:21 -08:00