Skip to content

Commit

Permalink
cgroup: netprio: remove unnecessary task_netprioidx
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gao feng authored and David S. Miller committed Oct 8, 2013
1 parent fbf8866 commit e1af5e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/core/netprio_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,10 @@ static void net_prio_attach(struct cgroup_subsys_state *css,
struct cgroup_taskset *tset)
{
struct task_struct *p;
void *v;
void *v = (void *)(unsigned long)css->cgroup->id;

cgroup_taskset_for_each(p, css, tset) {
task_lock(p);
v = (void *)(unsigned long)task_netprioidx(p);
iterate_fd(p->files, 0, update_netprio, v);
task_unlock(p);
}
Expand Down

0 comments on commit e1af5e4

Please sign in to comment.