Whamcloud - gitweb
i=liangzhen,b=18075:
[fs/lustre-release.git] / lnet / selftest / conrpc.h
index ba2a72c..1bb4963 100644 (file)
@@ -54,6 +54,9 @@
 /* Console rpc and rpc transaction */
 #define LST_TRANS_TIMEOUT       30
 #define LST_TRANS_MIN_TIMEOUT   3
+
+#define LST_VALIDATE_TIMEOUT(t) MIN(MAX(t, LST_TRANS_MIN_TIMEOUT), LST_TRANS_TIMEOUT)
+
 #define LST_PING_INTERVAL       8
 
 struct lstcon_rpc_trans;