[ofw] [PATCH 11/12] dapl-2.0: ucm: set timer during RTU_PENDING state change

Davis, Arlin R arlin.r.davis at intel.com
Wed May 19 11:11:39 PDT 2010


The timer thread may pick up an unitialized timer
value and timeout before the reply was sent.

Signed-off-by: Arlin Davis <arlin.r.davis at intel.com>
---
 dapl/openib_ucm/cm.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dapl/openib_ucm/cm.c b/dapl/openib_ucm/cm.c
index 8fed8f6..5d5e7d2 100644
--- a/dapl/openib_ucm/cm.c
+++ b/dapl/openib_ucm/cm.c
@@ -1486,6 +1486,7 @@ dapli_accept_usr(DAPL_EP *ep, DAPL_CR *cr, DAT_COUNT p_size, DAT_PVOID p_data)
 	cm->hca = ia->hca_ptr;
 	
 	dapl_os_lock(&cm->lock);
+	dapl_os_get_time(&cm->timer); /* RTU expected */
 	cm->state = DCM_RTU_PENDING;
 	dapl_os_unlock(&cm->lock);
 
-- 
1.5.2.5




More information about the ofw mailing list