From 2474767447ad92980cf4d4009d95551956c0f094 Mon Sep 17 00:00:00 2001 From: Mark Kogan Date: Mon, 13 Jul 2020 15:11:21 +0300 Subject: [PATCH] rgw: improve scheduler log when scheduling a dmclock requests add to the log the scheduler type as configured per "rgw_scheduler_type" Fixes: https://tracker.ceph.com/issues/46332 Signed-off-by: Mark Kogan --- src/rgw/rgw_process.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_process.cc b/src/rgw/rgw_process.cc index e314e8b2fb9..e52f8cb6835 100644 --- a/src/rgw/rgw_process.cc +++ b/src/rgw/rgw_process.cc @@ -48,8 +48,12 @@ auto schedule_request(Scheduler *scheduler, req_state *s, RGWOp *op) const auto client = op->dmclock_client(); const auto cost = op->dmclock_cost(); - ldpp_dout(op,10) << "scheduling with dmclock client=" << static_cast(client) - << " cost=" << cost << dendl; + if (s->cct->_conf->subsys.should_gather(ceph_subsys_rgw, 10)) { + ldpp_dout(op,10) << "scheduling with " + << s->cct->_conf.get_val("rgw_scheduler_type") + << " client=" << static_cast(client) + << " cost=" << cost << dendl; + } return scheduler->schedule_request(client, {}, req_state::Clock::to_double(s->time), cost, -- 2.47.3