mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 02:24:51 +00:00
qcow2: Schedule cache-clean-timer in realtime
There is no reason why the cache cleaning timer should run in virtual time, run it in realtime instead. Suggested-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Hanna Czenczek <hreitz@redhat.com> Message-ID: <20251110154854.151484-14-hreitz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
committed by
Kevin Wolf
parent
f86dde9a15
commit
94ce870f60
@@ -846,7 +846,7 @@ static void coroutine_fn cache_clean_timer(void *opaque)
|
||||
|
||||
while (wait_ns > 0) {
|
||||
qemu_co_sleep_ns_wakeable(&s->cache_clean_timer_wake,
|
||||
QEMU_CLOCK_VIRTUAL, wait_ns);
|
||||
QEMU_CLOCK_REALTIME, wait_ns);
|
||||
|
||||
WITH_QEMU_LOCK_GUARD(&s->lock) {
|
||||
if (s->cache_clean_interval > 0) {
|
||||
|
||||
Reference in New Issue
Block a user