]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: heartbeat_reset in dispatch
authorJohn Spray <john.spray@redhat.com>
Mon, 6 Mar 2017 11:24:50 +0000 (11:24 +0000)
committerJohn Spray <john.spray@redhat.com>
Mon, 6 Mar 2017 11:25:51 +0000 (11:25 +0000)
Previously we only heartbeated in tick.  However, our locking is
not guaranteed to be fair, so on a super-busy dispatch queue it may be
possible for the heartbeat to time out while the tick() function
is waiting for mds_lock.

Fixes: http://tracker.ceph.com/issues/19118
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDSRank.cc

index 58a196985eb03f7aa27473813dedd1fa9d716c7a..fce431d332da35646eb7aad5325afde614b89a44 100644 (file)
@@ -439,6 +439,8 @@ bool MDSRank::_dispatch(Message *m, bool new_msg)
       dout(0) << "unrecognized message " << *m << dendl;
       return false;
     }
+
+    heartbeat_reset();
   }
 
   if (dispatch_depth > 1)