Whamcloud - gitweb
fix build problem on Cray XT3 machines. See bz-13315
authorwalter <walter>
Wed, 5 Sep 2007 15:42:37 +0000 (15:42 +0000)
committerwalter <walter>
Wed, 5 Sep 2007 15:42:37 +0000 (15:42 +0000)
lustre/ptlrpc/pinger.c

index 4f320c2..31c43b9 100644 (file)
@@ -63,14 +63,16 @@ int ptlrpc_ping(struct obd_import *imp)
         RETURN(rc);
 }
 
-static void ptlrpc_update_next_ping(struct obd_import *imp)
+void ptlrpc_update_next_ping(struct obd_import *imp)
 {
+#ifdef ENABLE_PINGER
         int time = (imp->imp_state != LUSTRE_IMP_DISCON) ? PING_INTERVAL :
                 /* FIXME should this be limited to LND_TIMEOUT so we don't
                    build up pings in LND output queues? */
                 max_t(int, CONNECTION_SWITCH_MIN, 
                       at_get(&imp->imp_at.iat_net_latency));
         imp->imp_next_ping = cfs_time_shift(time);
+#endif /* ENABLE_PINGER */
 }
 
 void ptlrpc_ping_import_soon(struct obd_import *imp)