diff options
author | Tejun Heo <tj@kernel.org> | 2015-12-03 10:22:52 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-12-03 10:22:52 -0500 |
commit | 8075b542cf9f5d8a6afd92b4a940e29a677a7510 (patch) | |
tree | c2075c5fa70b16d086871edaf94febd954fec073 /net/core/netprio_cgroup.c | |
parent | d2b4365809060b256330a99289de9797a5dd6967 (diff) | |
parent | 67cde9c4938945b9510730c64e68d2f1dd7bc0aa (diff) |
Merge branch 'for-4.4-fixes' into for-4.5
Diffstat (limited to 'net/core/netprio_cgroup.c')
-rw-r--r-- | net/core/netprio_cgroup.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/core/netprio_cgroup.c b/net/core/netprio_cgroup.c index cbd0a199bf52..40fd09fe06ae 100644 --- a/net/core/netprio_cgroup.c +++ b/net/core/netprio_cgroup.c @@ -218,13 +218,14 @@ static int update_netprio(const void *v, struct file *file, unsigned n) return 0; } -static void net_prio_attach(struct cgroup_subsys_state *css, - struct cgroup_taskset *tset) +static void net_prio_attach(struct cgroup_taskset *tset) { struct task_struct *p; - void *v = (void *)(unsigned long)css->cgroup->id; + struct cgroup_subsys_state *css; + + cgroup_taskset_for_each(p, css, tset) { + void *v = (void *)(unsigned long)css->cgroup->id; - cgroup_taskset_for_each(p, tset) { task_lock(p); iterate_fd(p->files, 0, update_netprio, v); task_unlock(p); |