From: Aishwarya Mathuria Date: Mon, 18 Mar 2024 07:53:00 +0000 (+0000) Subject: osd: Remove OSDService::get_scrub_cost() X-Git-Tag: v18.2.5~303^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bf3b18288d3c813f7027a0e43f02b6447cc7779f;p=ceph.git osd: Remove OSDService::get_scrub_cost() After the addition of PgScrubber::get_scrub_cost(), this method will no longer be in use and can be removed. Signed-off-by: Aishwarya Mathuria (cherry picked from commit 77dda5ef03979bbaa6c9c8d9bae60d5b1769f6a8) --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 8633e95eafa5..b3fdc6437e0a 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -1810,17 +1810,6 @@ void OSDService::queue_scrub_event_msg_default_cost(PG* pg, queue_scrub_event_msg(pg, with_priority, cost); } -int64_t OSDService::get_scrub_cost() -{ - - int64_t cost_for_queue = cct->_conf->osd_scrub_cost; - if (op_queue_type_t::mClockScheduler == osd->osd_op_queue_type()) { - cost_for_queue = cct->_conf->osd_scrub_event_cost * - cct->_conf->osd_shallow_scrub_chunk_max; - } - return cost_for_queue; -} - void OSDService::queue_for_scrub(PG* pg, Scrub::scrub_prio_t with_priority) { queue_scrub_event_msg_default_cost(pg, with_priority); diff --git a/src/osd/OSD.h b/src/osd/OSD.h index 8c1bda9e9ee0..703ff13e04e1 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -612,8 +612,6 @@ private: Scrub::scrub_prio_t with_priority, unsigned int qu_priority, Scrub::act_token_t act_token); - int64_t get_scrub_cost(); - utime_t defer_recovery_until; uint64_t recovery_ops_active; uint64_t recovery_ops_reserved;