]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
blkin: add config variable osdc_blkin_trace_all
authorCasey Bodley <cbodley@redhat.com>
Thu, 12 Nov 2015 21:33:04 +0000 (16:33 -0500)
committerSage Weil <sage@redhat.com>
Fri, 5 May 2017 18:05:24 +0000 (14:05 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/common/config_opts.h
src/osdc/Objecter.cc

index 741beac76a925a89ff7ac49871f3b35f988a3ba3..c618981865ba4c299533c9440381e5d762e64f58 100644 (file)
@@ -999,6 +999,7 @@ OPTION(osd_bench_max_block_size, OPT_U64, 64 << 20) // cap the block size at 64M
 OPTION(osd_bench_duration, OPT_U32, 30) // duration of 'osd bench', capped at 30s to avoid triggering timeouts
 
 OPTION(osd_blkin_trace_all, OPT_BOOL, false) // create a blkin trace for all osd requests
+OPTION(osdc_blkin_trace_all, OPT_BOOL, false) // create a blkin trace for all objecter requests
 
 OPTION(osd_discard_disconnected_ops, OPT_BOOL, true)
 
index bdb189ab5e6d660a2b941eb1c9c06e36989187ce..e0b67888da10638f73cd629b85352f2f483077fc 100644 (file)
@@ -3091,6 +3091,8 @@ MOSDOp *Objecter::_prepare_osd_op(Op *op)
   m->set_mtime(op->mtime);
   m->set_retry_attempt(op->attempts++);
   m->trace = op->trace;
+  if (!m->trace && cct->_conf->osdc_blkin_trace_all)
+    m->trace.init("objecter op", &trace_endpoint);
 
   if (op->priority)
     m->set_priority(op->priority);