From c2424023bf0675c170571c3974fb8c2aadba4791 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 22 May 2005 12:10:37 +0000 Subject: [PATCH] - take HZ into account --- lustre/ptlrpc/pinger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/ptlrpc/pinger.c b/lustre/ptlrpc/pinger.c index 68912f7..d866933b 100644 --- a/lustre/ptlrpc/pinger.c +++ b/lustre/ptlrpc/pinger.c @@ -132,7 +132,7 @@ 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) { + if (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); -- 1.8.3.1