]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: useful debugging for when we drop requests
authorSage Weil <sage@inktank.com>
Thu, 28 Feb 2013 23:32:47 +0000 (15:32 -0800)
committerSage Weil <sage@inktank.com>
Fri, 1 Mar 2013 00:22:46 +0000 (16:22 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
src/osd/OSD.cc
src/osd/PG.cc

index 95abe8f8b2213e2ef6ec1f2c2c8793337cbacce4..8a4ea03508146ef41111d7f70109cbe6c69e39ae 100644 (file)
@@ -5875,6 +5875,7 @@ void OSD::handle_op(OpRequestRef op)
   MOSDOp *m = (MOSDOp*)op->request;
   assert(m->get_header().type == CEPH_MSG_OSD_OP);
   if (op_is_discardable(m)) {
+    dout(10) << " discardable " << *m << dendl;
     return;
   }
 
index c6617f853b0f9ee14a41a94c7d34c8b8b1089b91..d5a0a09433348ae5472584bd13d453f7169a1ac6 100644 (file)
@@ -1691,6 +1691,7 @@ void PG::do_request(OpRequestRef op)
     return;
   }
   if (must_delay_request(op)) {
+    dout(20) << " waiting for map on " << op << dendl;
     waiting_for_map.push_back(op);
     return;
   }
@@ -1698,6 +1699,7 @@ void PG::do_request(OpRequestRef op)
     return;
   }
   if (!flushed) {
+    dout(20) << " !flushed, waiting for active on " << op << dendl;
     waiting_for_active.push_back(op);
     return;
   }
@@ -1705,6 +1707,7 @@ void PG::do_request(OpRequestRef op)
   switch (op->request->get_type()) {
   case CEPH_MSG_OSD_OP:
     if (is_replay() || !is_active()) {
+      dout(20) << " replay, waiting for active on " << op << dendl;
       waiting_for_active.push_back(op);
       return;
     }
@@ -4792,6 +4795,7 @@ bool PG::can_discard_op(OpRequestRef op)
 {
   MOSDOp *m = (MOSDOp*)op->request;
   if (OSD::op_is_discardable(m)) {
+    dout(20) << " discard " << *m << dendl;
     return true;
   } else if (op->may_write() &&
             (!is_primary() ||