]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: mark manager beacons as no_reply
authorGreg Farnum <gfarnum@redhat.com>
Fri, 16 Feb 2018 23:44:22 +0000 (15:44 -0800)
committerPrashant D <pdhange@redhat.com>
Fri, 23 Mar 2018 00:54:46 +0000 (20:54 -0400)
We never reply to manager beacons, and we have to mark them
that way or else forwarded messages pile up pending replies
and things eventually block.

Fixes: http://tracker.ceph.com/issues/22114
Reported-by: Hongpeng Lu <ludehp@163.com>
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 57ecc1ef1c1d4df973517c71ba02e5d1a16fb9c1)

src/mon/MgrMonitor.cc

index 459197ffeb2ba46b75491c7ca2276621063de785..900aa5fce76e4612d68ed13da75653bdf07b2250 100644 (file)
@@ -278,6 +278,7 @@ public:
 bool MgrMonitor::preprocess_beacon(MonOpRequestRef op)
 {
   MMgrBeacon *m = static_cast<MMgrBeacon*>(op->get_req());
+  mon->no_reply(op); // we never reply to beacons
   dout(4) << "beacon from " << m->get_gid() << dendl;
 
   if (!check_caps(op, m->get_fsid())) {