Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Gao feng and committed by
David S. Miller
e1af5e44 fbf8866d

+1 -2
+1 -2
net/core/netprio_cgroup.c
··· 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 }