From: David Zafman Date: Thu, 16 Mar 2017 17:30:57 +0000 (-0700) Subject: osd: Rename backfill_request_* to recovery_request_* X-Git-Tag: v12.0.2~51^2~9 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=94e253ce37d6e840b47513c103c871f05111c2c6;p=ceph.git osd: Rename backfill_request_* to recovery_request_* To be used by both recovery and backfill Signed-off-by: David Zafman --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 644c9b959c85a..2bc8cce857e8b 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -255,8 +255,8 @@ OSDService::OSDService(OSD *osd) : watch_lock("OSDService::watch_lock"), watch_timer(osd->client_messenger->cct, watch_lock), next_notif_id(0), - backfill_request_lock("OSDService::backfill_request_lock"), - backfill_request_timer(cct, backfill_request_lock, false), + recovery_request_lock("OSDService::recovery_request_lock"), + recovery_request_timer(cct, recovery_request_lock, false), reserver_finisher(cct), local_reserver(&reserver_finisher, cct->_conf->osd_max_backfills, cct->_conf->osd_min_recovery_priority), @@ -495,8 +495,8 @@ void OSDService::shutdown() objecter_finisher.stop(); { - Mutex::Locker l(backfill_request_lock); - backfill_request_timer.shutdown(); + Mutex::Locker l(recovery_request_lock); + recovery_request_timer.shutdown(); } { @@ -2200,7 +2200,7 @@ int OSD::init() tick_timer.init(); tick_timer_without_osd_lock.init(); - service.backfill_request_timer.init(); + service.recovery_request_timer.init(); // mount. dout(2) << "mounting " << dev_path << " " diff --git a/src/osd/OSD.h b/src/osd/OSD.h index 45f76415f4964..591e5d2d2c712 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -917,9 +917,9 @@ public: return (((uint64_t)cur_epoch) << 32) | ((uint64_t)(next_notif_id++)); } - // -- Backfill Request Scheduling -- - Mutex backfill_request_lock; - SafeTimer backfill_request_timer; + // -- Recovery/Backfill Request Scheduling -- + Mutex recovery_request_lock; + SafeTimer recovery_request_timer; // -- tids -- // for ops i issue diff --git a/src/osd/PG.cc b/src/osd/PG.cc index d8d9c26dd1493..e7e21c6130209 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -3809,8 +3809,8 @@ void PG::reject_reservation() void PG::schedule_backfill_full_retry() { - Mutex::Locker lock(osd->backfill_request_lock); - osd->backfill_request_timer.add_event_after( + Mutex::Locker lock(osd->recovery_request_lock); + osd->recovery_request_timer.add_event_after( cct->_conf->osd_backfill_retry_interval, new QueuePeeringEvt( this, get_osdmap()->get_epoch(),