From: alex Date: Sat, 21 May 2005 19:00:19 +0000 (+0000) Subject: - on cnbuild ping time is set to some strange value, the patch is intended X-Git-Tag: 1.4.10~1112 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c5cb8238da8e8c07a41f32f7145bd9ddd5361f5d;p=fs%2Flustre-release.git - on cnbuild ping time is set to some strange value, the patch is intended to catch and fix the problem --- diff --git a/lustre/ptlrpc/pinger.c b/lustre/ptlrpc/pinger.c index 9994867..68912f7 100644 --- a/lustre/ptlrpc/pinger.c +++ b/lustre/ptlrpc/pinger.c @@ -132,6 +132,12 @@ static void ptlrpc_pinger_process_import(struct obd_import *imp, imp->imp_force_verify = 0; spin_unlock_irqrestore(&imp->imp_lock, flags); + if (imp->imp_next_ping - this_ping > obd_timeout) { + CWARN("wrong ping time %lu (current %lu)\n", + imp->imp_next_ping, this_ping); + imp->imp_next_ping = ptlrpc_next_reconnect(imp); + } + if (imp->imp_next_ping > this_ping && force == 0) return;