summaryrefslogtreecommitdiffstats
path: root/fsdev
diff options
context:
space:
mode:
authorManos Pitsidianakis2017-07-02 12:06:45 +0200
committerKevin Wolf2017-07-18 15:14:35 +0200
commitdbe824cc57fbc93dc7ee53287e06c101b20e078b (patch)
tree24b3ee1bec73ec405e02a26a4631603d67740cd3 /fsdev
parentcommit: Add NULL check for overlay_bs (diff)
downloadqemu-dbe824cc57fbc93dc7ee53287e06c101b20e078b.tar.gz
qemu-dbe824cc57fbc93dc7ee53287e06c101b20e078b.tar.xz
qemu-dbe824cc57fbc93dc7ee53287e06c101b20e078b.zip
block: add clock_type field to ThrottleGroup
Clock type in throttling is currently inferred by the ThrottleTimer's clock type even though it is a per-ThrottleGroup property; it doesn't make sense to have different clock types in the same group. Moving this to a field in ThrottleGroup can simplify some of the throttle functions. Signed-off-by: Manos Pitsidianakis <el13635@mail.ntua.gr> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'fsdev')
-rw-r--r--fsdev/qemu-fsdev-throttle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsdev/qemu-fsdev-throttle.c b/fsdev/qemu-fsdev-throttle.c
index 7ae4e86646..453fb1efde 100644
--- a/fsdev/qemu-fsdev-throttle.c
+++ b/fsdev/qemu-fsdev-throttle.c
@@ -86,7 +86,7 @@ void fsdev_throttle_init(FsThrottle *fst)
fsdev_throttle_read_timer_cb,
fsdev_throttle_write_timer_cb,
fst);
- throttle_config(&fst->ts, &fst->tt, &fst->cfg);
+ throttle_config(&fst->ts, QEMU_CLOCK_REALTIME, &fst->tt, &fst->cfg);
qemu_co_queue_init(&fst->throttled_reqs[0]);
qemu_co_queue_init(&fst->throttled_reqs[1]);
}