mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
Fix a logic error for setting block I/O
Fix a logic error, the initial value of ret = -1, if just set --config, it will goto endjob directly without doing its really job here. Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
This commit is contained in:
parent
b0ed12276e
commit
ac6b368d8a
@ -11233,9 +11233,9 @@ qemuDomainSetBlockIoTune(virDomainPtr dom,
|
||||
qemuDomainObjEnterMonitorWithDriver(driver, vm);
|
||||
ret = qemuMonitorSetBlockIoThrottle(priv->mon, device, &info);
|
||||
qemuDomainObjExitMonitorWithDriver(driver, vm);
|
||||
if (ret < 0)
|
||||
goto endjob;
|
||||
}
|
||||
if (ret < 0)
|
||||
goto endjob;
|
||||
|
||||
if (flags & VIR_DOMAIN_AFFECT_CONFIG) {
|
||||
sa_assert(persistentDef && idx >= 0);
|
||||
|
Loading…
Reference in New Issue
Block a user