From: alex Date: Mon, 23 May 2005 10:27:32 +0000 (+0000) Subject: - brown paper bug (negative value is good) X-Git-Tag: 1.4.10~1109 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=8c9a3b75ac27ee0b04593ac5424a0b74d176ccd1;p=fs%2Flustre-release.git - brown paper bug (negative value is good) --- diff --git a/lustre/ptlrpc/pinger.c b/lustre/ptlrpc/pinger.c index d866933b..866e7eb 100644 --- a/lustre/ptlrpc/pinger.c +++ b/lustre/ptlrpc/pinger.c @@ -132,7 +132,8 @@ 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 * HZ) { + if ((imp->imp_next_ping - this_ping > 0) && + (imp->imp_next_ping - this_ping > obd_timeout * HZ)) { CWARN("wrong ping time %lu (current %lu)\n", imp->imp_next_ping, this_ping); imp->imp_next_ping = ptlrpc_next_reconnect(imp);