[PATCH] IB: Fix timeout/cancelled MAD handling
authorHal Rosenstock <halr@voltaire.com>
Wed, 27 Jul 2005 18:45:26 +0000 (11:45 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Jul 2005 23:26:10 +0000 (16:26 -0700)
commit6a0c435ef9e2473934442282054d0f58235d1de2
tree71a5d054bde7447f10c611e359ecbcc36462a312
parentd760ce8f71ec5336c4a750a1293f26c0eb938c8a
[PATCH] IB: Fix timeout/cancelled MAD handling

Fixes an issue processing a sent MAD after it has timed out or been canceled.
The race occurs when a response MAD matches with the send request.  The
request could time out or be canceled after the response MAD matches with the
request, but before the request completion can be processed.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Hal Rosenstock <halr@voltaire.com>
Cc: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/infiniband/core/mad.c
drivers/infiniband/core/mad_priv.h