From: Casey Bodley Date: Thu, 12 Nov 2015 21:33:04 +0000 (-0500) Subject: blkin: add config variable osdc_blkin_trace_all X-Git-Tag: v12.0.3~73^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ffdfe6996fa10750124583fbc6217c7bb4f01bb0;p=ceph.git blkin: add config variable osdc_blkin_trace_all Signed-off-by: Casey Bodley --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 741beac76a92..c618981865ba 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -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) diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index bdb189ab5e6d..e0b67888da10 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -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);