These methods can be actually called without osd_lock in hand(have their own locks),
so it is good for performance to move them into tick_without_osd_lock() instead.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
if (is_active()) {
check_replay_queue();
-
- service.promote_throttle_recalibrate();
}
do_waiters();
- check_ops_in_flight();
-
- service.kick_recovery_queue();
-
tick_timer.add_event_after(OSD_TICK_INTERVAL, new C_Tick(this));
}
if (!scrub_random_backoff()) {
sched_scrub();
}
+ service.promote_throttle_recalibrate();
}
+
+ check_ops_in_flight();
+ service.kick_recovery_queue();
tick_timer_without_osd_lock.add_event_after(OSD_TICK_INTERVAL, new C_Tick_WithoutOSDLock(this));
}