]> git.openfabrics.org - ~shefty/rdma-win.git/commit
winverbs: allow WV:Disconnect() to be retried
authorSean Hefty <sean.hefty@intel.com>
Tue, 9 Mar 2010 01:53:21 +0000 (17:53 -0800)
committerSean Hefty <sean.hefty@intel.com>
Tue, 9 Mar 2010 19:58:41 +0000 (11:58 -0800)
commitb4d114e5307ff5506ad14556173bb88bbe47dea5
tree2586ba9029b17fa3e8628f7a343ca9641a7bad52
parent5995a0340f6415ef00c2af33f9d1adbcc6e36165
winverbs: allow WV:Disconnect() to be retried

ND for some odd reason wants a successful return code for
a failed disconnect call.  If a Disconnect() call fails,
allow it to be retried.  Return STATUS_TIMEOUT - a 'successful'
failure, rather than STATUS_IO_TIMEOUT, which is a 'failed' failure.
(I love Windows, really, I do.)  A subsequent call to EP:
Disconnect() after a timeout will force the QP into the error
state and force the EP into the disconnected state.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
trunk/core/winverbs/kernel/wv_ep.c