diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2013-10-07 23:05:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-08 16:27:34 -0400 |
commit | ff0bfad6a2ed98c89cc91bc88ac223082eb42d4a (patch) | |
tree | 7edf17c818d82ff44153f5017d4ab887a6769a98 | |
parent | e1af5e445ef8582e8f690fadcd63797db1e62663 (diff) |
cgroup: cls: remove unnecessary task_cls_classid
We can get classid through cgroup_subsys_state,
this is directviewing and effective.
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>
-rw-r--r-- | net/sched/cls_cgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c index 867b4a3e3980..16006c92c3fd 100644 --- a/net/sched/cls_cgroup.c +++ b/net/sched/cls_cgroup.c | |||
@@ -72,11 +72,11 @@ static void cgrp_attach(struct cgroup_subsys_state *css, | |||
72 | struct cgroup_taskset *tset) | 72 | struct cgroup_taskset *tset) |
73 | { | 73 | { |
74 | struct task_struct *p; | 74 | struct task_struct *p; |
75 | void *v; | 75 | struct cgroup_cls_state *cs = css_cls_state(css); |
76 | void *v = (void *)(unsigned long)cs->classid; | ||
76 | 77 | ||
77 | cgroup_taskset_for_each(p, css, tset) { | 78 | cgroup_taskset_for_each(p, css, tset) { |
78 | task_lock(p); | 79 | task_lock(p); |
79 | v = (void *)(unsigned long)task_cls_classid(p); | ||
80 | iterate_fd(p->files, 0, update_classid, v); | 80 | iterate_fd(p->files, 0, update_classid, v); |
81 | task_unlock(p); | 81 | task_unlock(p); |
82 | } | 82 | } |