[openib-general] [PATCH] [kdapl] Update EP state before disconnect
Hal Rosenstock
halr at voltaire.com
Fri Jun 24 15:27:23 PDT 2005
[kdapl] Make update of EP state consistent. Update the EP state before
disconnecting.
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
Index: dapl_evd.c
===================================================================
-- dapl_evd.c (revision 2713)
+++ dapl_evd.c (working copy)
@@ -789,11 +789,11 @@
* reset the state to DISCONNECTED as we don't
* expect a callback on an ABRUPT disconnect.
*/
- dapl_ib_disconnect(ep, DAT_CLOSE_ABRUPT_FLAG);
spin_lock_irqsave(&ep->common.lock, ep->common.flags);
ep->param.ep_state = DAT_EP_STATE_DISCONNECTED;
spin_unlock_irqrestore(&ep->common.lock,
ep->common.flags);
+ dapl_ib_disconnect(ep, DAT_CLOSE_ABRUPT_FLAG);
}
}
More information about the general
mailing list