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:
fbf8866
)
cgroup: netprio: remove unnecessary task_netprioidx
author
Gao feng
<
[email protected]
>
Tue, 8 Oct 2013 03:05:19 +0000
(11:05 +0800)
committer
David S. Miller
<
[email protected]
>
Tue, 8 Oct 2013 20:27:34 +0000
(16:27 -0400)
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 <
[email protected]
>
Acked-by: Neil Horman <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/core/netprio_cgroup.c
patch
|
blob
|
history
diff --git
a/net/core/netprio_cgroup.c
b/net/core/netprio_cgroup.c
index d9cd627e6a16a55bb9b6e8ec1619a0291e1621ab..9b7cf6c85f82447d3e03f33cd2c599de13ed3644 100644
(file)
--- a/
net/core/netprio_cgroup.c
+++ b/
net/core/netprio_cgroup.c
@@
-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);
}