Skip to content
Snippets Groups Projects
Commit 8c9a3b75 authored by alex's avatar alex
Browse files

- brown paper bug (negative value is good)

parent c2424023
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment