From: Mark Kogan Date: Mon, 13 Jul 2020 12:11:21 +0000 (+0300) Subject: rgw: improve scheduler log X-Git-Tag: wip-pdonnell-testing-20200918.022351~406^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2474767447ad92980cf4d4009d95551956c0f094;p=ceph-ci.git 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 --- 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,