mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
Merge branch 'for-5.6-fixes' into for-5.7
This commit is contained in:
commit
a09833f7cd
@ -783,7 +783,7 @@ void cgroup1_release_agent(struct work_struct *work)
|
|||||||
|
|
||||||
pathbuf = kmalloc(PATH_MAX, GFP_KERNEL);
|
pathbuf = kmalloc(PATH_MAX, GFP_KERNEL);
|
||||||
agentbuf = kstrdup(cgrp->root->release_agent_path, GFP_KERNEL);
|
agentbuf = kstrdup(cgrp->root->release_agent_path, GFP_KERNEL);
|
||||||
if (!pathbuf || !agentbuf)
|
if (!pathbuf || !agentbuf || !strlen(agentbuf))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
spin_lock_irq(&css_set_lock);
|
spin_lock_irq(&css_set_lock);
|
||||||
|
@ -3538,21 +3538,21 @@ static int cpu_stat_show(struct seq_file *seq, void *v)
|
|||||||
static int cgroup_io_pressure_show(struct seq_file *seq, void *v)
|
static int cgroup_io_pressure_show(struct seq_file *seq, void *v)
|
||||||
{
|
{
|
||||||
struct cgroup *cgrp = seq_css(seq)->cgroup;
|
struct cgroup *cgrp = seq_css(seq)->cgroup;
|
||||||
struct psi_group *psi = cgroup_id(cgrp) == 1 ? &psi_system : &cgrp->psi;
|
struct psi_group *psi = cgroup_ino(cgrp) == 1 ? &psi_system : &cgrp->psi;
|
||||||
|
|
||||||
return psi_show(seq, psi, PSI_IO);
|
return psi_show(seq, psi, PSI_IO);
|
||||||
}
|
}
|
||||||
static int cgroup_memory_pressure_show(struct seq_file *seq, void *v)
|
static int cgroup_memory_pressure_show(struct seq_file *seq, void *v)
|
||||||
{
|
{
|
||||||
struct cgroup *cgrp = seq_css(seq)->cgroup;
|
struct cgroup *cgrp = seq_css(seq)->cgroup;
|
||||||
struct psi_group *psi = cgroup_id(cgrp) == 1 ? &psi_system : &cgrp->psi;
|
struct psi_group *psi = cgroup_ino(cgrp) == 1 ? &psi_system : &cgrp->psi;
|
||||||
|
|
||||||
return psi_show(seq, psi, PSI_MEM);
|
return psi_show(seq, psi, PSI_MEM);
|
||||||
}
|
}
|
||||||
static int cgroup_cpu_pressure_show(struct seq_file *seq, void *v)
|
static int cgroup_cpu_pressure_show(struct seq_file *seq, void *v)
|
||||||
{
|
{
|
||||||
struct cgroup *cgrp = seq_css(seq)->cgroup;
|
struct cgroup *cgrp = seq_css(seq)->cgroup;
|
||||||
struct psi_group *psi = cgroup_id(cgrp) == 1 ? &psi_system : &cgrp->psi;
|
struct psi_group *psi = cgroup_ino(cgrp) == 1 ? &psi_system : &cgrp->psi;
|
||||||
|
|
||||||
return psi_show(seq, psi, PSI_CPU);
|
return psi_show(seq, psi, PSI_CPU);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user