]> xenbits.xensource.com Git - libvirt.git/commit
domain_cgroup.c: update domain after setting blkio.weight
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 22 Mar 2021 19:28:59 +0000 (16:28 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Tue, 23 Mar 2021 13:15:30 +0000 (10:15 -0300)
commite2602f2bb186da100116a5668d95ca829b7f2767
tree19144ed70b26651a7c8c53d56a96a9405331f553
parent8fdc37711b42cd8cd75f2903629f990c74d67ad0
domain_cgroup.c: update domain after setting blkio.weight

Commit ac87d3520ad5 consolidated common cgroup code between the QEMU and
lxc drivers in domain_cgroup.c. In this process, in
virDomainCgroupSetupDomainBlkioParameters(), a call to
virCgroupGetBlkioWeight() went missing.

The result is that 'virsh blkiotune' is setting the blkio.weight for the
guest in the host cgroup, but not on the domain XML, because
virCgroupGetBlkioWeight() is also used to write the blkio.weight value
in the domain object.

Fix it by adding the virCgroupGetBlkioWeight() call in the
virDomainCgroupSetupDomainBlkioParameters() helper.

Fixes: ac87d3520ad542d558854a72b0ae0a81fddc6747
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1941407
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/hypervisor/domain_cgroup.c