[kdapl] Make update of EP state consistent. Update the EP state before
disconnecting.

Signed-off-by: Hal Rosenstock <[EMAIL PROTECTED]>


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);
                }
        }
 

_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to