mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-03 17:47:15 +03: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;
|
||||
}
|
||||
|
||||
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
|
||||
qemuSetupCgroupCpusetCpus(virCgroupPtr cgroup,
|
||||
|
@ -57,10 +57,6 @@ int qemuSetupCgroupVcpuPin(virCgroupPtr cgroup,
|
||||
int nvcpupin,
|
||||
int vcpuid);
|
||||
int qemuSetupCgroupCpusetCpus(virCgroupPtr cgroup, virBitmapPtr cpumask);
|
||||
int qemuSetupCgroupIOThreadsPin(virCgroupPtr cgroup,
|
||||
virDomainPinDefPtr *iothreadspin,
|
||||
int niothreadspin,
|
||||
int iothreadid);
|
||||
int qemuSetupCgroupForVcpu(virDomainObjPtr vm);
|
||||
int qemuSetupCgroupForIOThreads(virDomainObjPtr vm);
|
||||
int qemuSetupCgroupForEmulator(virDomainObjPtr vm);
|
||||
|
@ -6023,10 +6023,7 @@ qemuDomainPinIOThread(virDomainPtr dom,
|
||||
if (virCgroupNewIOThread(priv->cgroup, iothread_id,
|
||||
false, &cgroup_iothread) < 0)
|
||||
goto endjob;
|
||||
if (qemuSetupCgroupIOThreadsPin(cgroup_iothread,
|
||||
newIOThreadsPin,
|
||||
newIOThreadsPinNum,
|
||||
iothread_id) < 0) {
|
||||
if (qemuSetupCgroupCpusetCpus(cgroup_iothread, pcpumap) < 0) {
|
||||
virReportError(VIR_ERR_OPERATION_INVALID,
|
||||
_("failed to set cpuset.cpus in cgroup"
|
||||
" for iothread %d"), iothread_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user