From 7ff3fec0441ab69ed05e0a8e9732b0b3694ac11d Mon Sep 17 00:00:00 2001 From: walter Date: Wed, 5 Sep 2007 15:42:37 +0000 Subject: [PATCH] fix build problem on Cray XT3 machines. See bz-13315 --- lustre/ptlrpc/pinger.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/ptlrpc/pinger.c b/lustre/ptlrpc/pinger.c index 4f320c2..31c43b9 100644 --- a/lustre/ptlrpc/pinger.c +++ b/lustre/ptlrpc/pinger.c @@ -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) -- 1.8.3.1