We will do it in tick_without_osd_lock().
Also make sure that we do it only if the OSD is currently alive.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
}
if (is_active()) {
- if (!scrub_random_backoff()) {
- sched_scrub();
- }
-
check_replay_queue();
service.promote_throttle_recalibrate();
map_lock.put_read();
}
- if (!scrub_random_backoff()) {
- sched_scrub();
+ if (is_active()) {
+ if (!scrub_random_backoff()) {
+ sched_scrub();
+ }
}
tick_timer_without_osd_lock.add_event_after(OSD_TICK_INTERVAL, new C_Tick_WithoutOSDLock(this));
}