]> git.proxmox.com Git - mirror_qemu.git/commit
throttle: Don't allow burst limits to be lower than the normal limits
authorAlberto Garcia <berto@igalia.com>
Thu, 28 Jul 2016 08:08:12 +0000 (11:08 +0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 5 Aug 2016 08:59:06 +0000 (09:59 +0100)
commitaaa1e77ffae5255fb2a35284e7fc721742bb41c8
tree8943869d88edda55779aae1b5457842584673b66
parent555a608c5d5dcc44e45a483ca09b449d8db519d1
throttle: Don't allow burst limits to be lower than the normal limits

Setting FOO_max to a value that is lower than FOO does not make
sense, and it produces odd results depending on the value of
FOO_max_length. Although the user should not set that configuration
in the first place it's better to reject it explicitly.

https://bugzilla.redhat.com/show_bug.cgi?id=1355665

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reported-by: Gu Nini <ngu@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 663d5aca406060e31f80d8113f77b6feee63b919.1469693110.git.berto@igalia.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
util/throttle.c