projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1af5e4
)
cgroup: cls: remove unnecessary task_cls_classid
author
Gao feng
<
[email protected]
>
Tue, 8 Oct 2013 03:05:20 +0000
(11:05 +0800)
committer
David S. Miller
<
[email protected]
>
Tue, 8 Oct 2013 20:27:34 +0000
(16:27 -0400)
We can get classid through cgroup_subsys_state,
this is directviewing and effective.
Signed-off-by: Gao feng <
[email protected]
>
Acked-by: Neil Horman <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sched/cls_cgroup.c
patch
|
blob
|
history
diff --git
a/net/sched/cls_cgroup.c
b/net/sched/cls_cgroup.c
index 867b4a3e39800fb44819e3cfd68ad0fb30d6ea05..16006c92c3fde515d9047a4e32f0ec3f0df2f005 100644
(file)
--- 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,
struct cgroup_taskset *tset)
{
struct task_struct *p;
- void *v;
+ struct cgroup_cls_state *cs = css_cls_state(css);
+ void *v = (void *)(unsigned long)cs->classid;
cgroup_taskset_for_each(p, css, tset) {
task_lock(p);
- v = (void *)(unsigned long)task_cls_classid(p);
iterate_fd(p->files, 0, update_classid, v);
task_unlock(p);
}