]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Objecter: disable fast dispatch of CEPH_MSG_OSD_OPREPLY messages 2500/head 2540/head
authorGreg Farnum <greg@inktank.com>
Mon, 15 Sep 2014 21:11:37 +0000 (14:11 -0700)
committerGreg Farnum <greg@inktank.com>
Fri, 19 Sep 2014 04:13:28 +0000 (21:13 -0700)
If they fast_dispatch they can deadlock right now. We'll need to change
the semantics around mark_down() or around the Objecter's locking to
fix it.

Sort-of-
Fixes: #9462
Signed-off-by: Greg Farnum <greg@inktank.com>
src/osdc/Objecter.h

index 342dda5e3cc05f173615b997754bb94633538daf..934375299855488c96f8bc4ed0a4c7ff8e8ccc5b 100644 (file)
@@ -1653,12 +1653,14 @@ public:
  public:
   bool ms_dispatch(Message *m);
   bool ms_can_fast_dispatch_any() const {
-    return true;
+    return false;
   }
   bool ms_can_fast_dispatch(Message *m) const {
     switch (m->get_type()) {
     case CEPH_MSG_OSD_OPREPLY:
-      return true;
+      /* sadly, we need to solve a deadlock before reenabling.
+       * See tracker issue #9462 */
+      return false;
     default:
       return false;
     }