Commit e1af5e445ef8582e8f690fadcd63797db1e62663
Committed by
David S. Miller
1 parent
fbf8866d65
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
cgroup: netprio: remove unnecessary task_netprioidx
Since the tasks have been migrated to the cgroup, there is no need to call task_netprioidx to get task's cgroup id. Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
net/core/netprio_cgroup.c
... | ... | @@ -222,11 +222,10 @@ |
222 | 222 | struct cgroup_taskset *tset) |
223 | 223 | { |
224 | 224 | struct task_struct *p; |
225 | - void *v; | |
225 | + void *v = (void *)(unsigned long)css->cgroup->id; | |
226 | 226 | |
227 | 227 | cgroup_taskset_for_each(p, css, tset) { |
228 | 228 | task_lock(p); |
229 | - v = (void *)(unsigned long)task_netprioidx(p); | |
230 | 229 | iterate_fd(p->files, 0, update_netprio, v); |
231 | 230 | task_unlock(p); |
232 | 231 | } |