]> git.proxmox.com Git - mirror_qemu.git/commit
block: remove timer canceling in throttle_config()
authorManos Pitsidianakis <el13635@mail.ntua.gr>
Sun, 2 Jul 2017 10:06:46 +0000 (13:06 +0300)
committerKevin Wolf <kwolf@redhat.com>
Tue, 18 Jul 2017 13:14:35 +0000 (15:14 +0200)
commit27e4cf13030ca5d12bbad12f38a27d35378a5894
treed4b44b55555db9f98fb3446c74a53593feeb09f5
parentdbe824cc57fbc93dc7ee53287e06c101b20e078b
block: remove timer canceling in throttle_config()

throttle_config() cancels the timers of the calling BlockBackend. This
doesn't make sense because other BlockBackends in the group remain
untouched. There's no need to cancel the timers in the one specific
BlockBackend so let's not do that. Throttled requests will run as
scheduled and future requests will follow the new configuration. This
also allows a throttle group's configuration to be changed even when it
has no members.

Signed-off-by: Manos Pitsidianakis <el13635@mail.ntua.gr>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/throttle-groups.c
fsdev/qemu-fsdev-throttle.c
include/qemu/throttle.h
tests/test-throttle.c
util/throttle.c