mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: cgroup: Kill qemuSetupCgroupIOThreadsPin()
The function doesn't make sense. There's a simpler way to achieve the same.
This commit is contained in:
parent
55072593d8
commit
8a81264b18
@ -958,21 +958,6 @@ qemuSetupCgroupVcpuPin(virCgroupPtr cgroup,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
qemuSetupCgroupIOThreadsPin(virCgroupPtr cgroup,
|
|
||||||
virDomainPinDefPtr *iothreadspin,
|
|
||||||
int niothreadspin,
|
|
||||||
int iothreadid)
|
|
||||||
{
|
|
||||||
size_t i;
|
|
||||||
|
|
||||||
for (i = 0; i < niothreadspin; i++) {
|
|
||||||
if (iothreadid == iothreadspin[i]->id)
|
|
||||||
return qemuSetupCgroupCpusetCpus(cgroup, iothreadspin[i]->cpumask);
|
|
||||||
}
|
|
||||||
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
qemuSetupCgroupCpusetCpus(virCgroupPtr cgroup,
|
qemuSetupCgroupCpusetCpus(virCgroupPtr cgroup,
|
||||||
|
@ -57,10 +57,6 @@ int qemuSetupCgroupVcpuPin(virCgroupPtr cgroup,
|
|||||||
int nvcpupin,
|
int nvcpupin,
|
||||||
int vcpuid);
|
int vcpuid);
|
||||||
int qemuSetupCgroupCpusetCpus(virCgroupPtr cgroup, virBitmapPtr cpumask);
|
int qemuSetupCgroupCpusetCpus(virCgroupPtr cgroup, virBitmapPtr cpumask);
|
||||||
int qemuSetupCgroupIOThreadsPin(virCgroupPtr cgroup,
|
|
||||||
virDomainPinDefPtr *iothreadspin,
|
|
||||||
int niothreadspin,
|
|
||||||
int iothreadid);
|
|
||||||
int qemuSetupCgroupForVcpu(virDomainObjPtr vm);
|
int qemuSetupCgroupForVcpu(virDomainObjPtr vm);
|
||||||
int qemuSetupCgroupForIOThreads(virDomainObjPtr vm);
|
int qemuSetupCgroupForIOThreads(virDomainObjPtr vm);
|
||||||
int qemuSetupCgroupForEmulator(virDomainObjPtr vm);
|
int qemuSetupCgroupForEmulator(virDomainObjPtr vm);
|
||||||
|
@ -6023,10 +6023,7 @@ qemuDomainPinIOThread(virDomainPtr dom,
|
|||||||
if (virCgroupNewIOThread(priv->cgroup, iothread_id,
|
if (virCgroupNewIOThread(priv->cgroup, iothread_id,
|
||||||
false, &cgroup_iothread) < 0)
|
false, &cgroup_iothread) < 0)
|
||||||
goto endjob;
|
goto endjob;
|
||||||
if (qemuSetupCgroupIOThreadsPin(cgroup_iothread,
|
if (qemuSetupCgroupCpusetCpus(cgroup_iothread, pcpumap) < 0) {
|
||||||
newIOThreadsPin,
|
|
||||||
newIOThreadsPinNum,
|
|
||||||
iothread_id) < 0) {
|
|
||||||
virReportError(VIR_ERR_OPERATION_INVALID,
|
virReportError(VIR_ERR_OPERATION_INVALID,
|
||||||
_("failed to set cpuset.cpus in cgroup"
|
_("failed to set cpuset.cpus in cgroup"
|
||||||
" for iothread %d"), iothread_id);
|
" for iothread %d"), iothread_id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user