[ofa-general] [PATCH] reduce wait time for thread startup.

Davis, Arlin R arlin.r.davis at intel.com
Sun Apr 19 00:55:55 PDT 2009


thread startup wait reduce to 2ms to reduce open times.

Signed-off-by: Arlin Davis <ardavis at ichips.intel.com>
---
 dapl/openib_scm/dapl_ib_util.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dapl/openib_scm/dapl_ib_util.c b/dapl/openib_scm/dapl_ib_util.c
index 5e371ee..e0c61dd 100644
--- a/dapl/openib_scm/dapl_ib_util.c
+++ b/dapl/openib_scm/dapl_ib_util.c
@@ -388,7 +388,7 @@ found:
 	
 	/* wait for thread */
 	while (hca_ptr->ib_trans.cr_state != IB_THREAD_RUN) {
-		dapl_os_sleep_usec(20000);
+		dapl_os_sleep_usec(2000);
 	}
 
 	dapl_dbg_log(DAPL_DBG_TYPE_UTIL, 
@@ -461,7 +461,7 @@ DAT_RETURN dapls_ib_close_hca (	IN   DAPL_HCA	*hca_ptr )
 			dapl_log(DAPL_DBG_TYPE_UTIL, 
 				 " thread_destroy: thread wakeup err = %s\n", 
 				 strerror(errno));
-		dapl_os_sleep_usec(20000);
+		dapl_os_sleep_usec(2000);
 	}
 	dapl_os_lock_destroy(&hca_ptr->ib_trans.lock);
 
-- 
1.5.2.5




More information about the general mailing list