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:
parent
f86dde9a15
commit
94ce870f60
1 changed files with 1 additions and 1 deletions
|
|
@ -846,7 +846,7 @@ static void coroutine_fn cache_clean_timer(void *opaque)
|
||||||
|
|
||||||
while (wait_ns > 0) {
|
while (wait_ns > 0) {
|
||||||
qemu_co_sleep_ns_wakeable(&s->cache_clean_timer_wake,
|
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) {
|
WITH_QEMU_LOCK_GUARD(&s->lock) {
|
||||||
if (s->cache_clean_interval > 0) {
|
if (s->cache_clean_interval > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue