]> git.proxmox.com Git - mirror_qemu.git/commit
block: tidy ThrottleGroupMember initializations
authorManos Pitsidianakis <el13635@mail.ntua.gr>
Fri, 25 Aug 2017 13:20:25 +0000 (16:20 +0300)
committerKevin Wolf <kwolf@redhat.com>
Tue, 5 Sep 2017 14:47:52 +0000 (16:47 +0200)
commitf738cfc843055238ad969782db69156929873832
tree7e4aa61dcd47de404fc6c157f2d20fae5e1948e4
parentc61791fc23ecd96e6a1e038c379c4033ffd5f40c
block: tidy ThrottleGroupMember initializations

Move the CoMutex and CoQueue inits inside throttle_group_register_tgm()
which is called whenever a ThrottleGroupMember is initialized. There's
no need for them to be separate.

Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Manos Pitsidianakis <el13635@mail.ntua.gr>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c
block/throttle-groups.c