Whamcloud - gitweb
- added sfw_set_session_timeout to set session_timeout from userland.
authorisaac <isaac>
Thu, 28 Jun 2007 07:45:35 +0000 (07:45 +0000)
committerisaac <isaac>
Thu, 28 Jun 2007 07:45:35 +0000 (07:45 +0000)
lnet/selftest/framework.c
lnet/selftest/selftest.h
lnet/utils/lstclient.c

index 6a2487b..7e79455 100644 (file)
@@ -215,6 +215,12 @@ sfw_session_removed (void)
         return (sfw_data.fw_session == NULL) ? 1 : 0;
 }
 
         return (sfw_data.fw_session == NULL) ? 1 : 0;
 }
 
+void
+sfw_set_session_timeout (int timeout)
+{
+        session_timeout = timeout;
+}
+
 #endif
 
 void
 #endif
 
 void
index 72cc17a..b759e6a 100644 (file)
@@ -516,6 +516,8 @@ swi_state2str (int state)
 #ifndef __KERNEL__
 
 int stt_poll_interval(void);
 #ifndef __KERNEL__
 
 int stt_poll_interval(void);
+int sfw_session_removed(void);
+void sfw_set_session_timeout(int timeout);
 
 int stt_check_events(void);
 int swi_check_events(void);
 
 int stt_check_events(void);
 int swi_check_events(void);
index 075872b..61a213a 100644 (file)
@@ -21,8 +21,6 @@ static int lstjn_intialized = 0;
 unsigned int libcfs_subsystem_debug = ~0 - (S_LNET | S_LND);
 unsigned int libcfs_debug = 0;
 
 unsigned int libcfs_subsystem_debug = ~0 - (S_LNET | S_LND);
 unsigned int libcfs_debug = 0;
 
-extern int sfw_session_removed(void);
-
 static struct option lstjn_options[] =
 {
         {"sesid",   required_argument,  0, 's' },
 static struct option lstjn_options[] =
 {
         {"sesid",   required_argument,  0, 's' },