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:
30088ad
)
cgroup,rcu: convert call_rcu(free_cgroup_rcu) to kfree_rcu()
author
Lai Jiangshan
<
[email protected]
>
Tue, 15 Mar 2011 09:55:16 +0000
(17:55 +0800)
committer
Paul E. McKenney
<
[email protected]
>
Sun, 8 May 2011 05:50:46 +0000
(22:50 -0700)
The rcu callback free_cgroup_rcu() just calls a kfree(),
so we use kfree_rcu() instead of the call_rcu(free_cgroup_rcu).
Signed-off-by: Lai Jiangshan <
[email protected]
>
Acked-by: Paul Menage <
[email protected]
>
Signed-off-by: Paul E. McKenney <
[email protected]
>
Reviewed-by: Josh Triplett <
[email protected]
>
kernel/cgroup.c
patch
|
blob
|
history
diff --git
a/kernel/cgroup.c
b/kernel/cgroup.c
index d5160a83fb35f6f4c25968fda7b6826b50867203..20451ce7195feb6a1f68cd45d1e3274eaf6ac68d 100644
(file)
--- a/
kernel/cgroup.c
+++ b/
kernel/cgroup.c
@@
-806,13
+806,6
@@
static int cgroup_call_pre_destroy(struct cgroup *cgrp)
return ret;
}
-static void free_cgroup_rcu(struct rcu_head *obj)
-{
- struct cgroup *cgrp = container_of(obj, struct cgroup, rcu_head);
-
- kfree(cgrp);
-}
-
static void cgroup_diput(struct dentry *dentry, struct inode *inode)
{
/* is dentry a directory ? if so, kfree() associated cgroup */
@@
-850,7
+843,7
@@
static void cgroup_diput(struct dentry *dentry, struct inode *inode)
*/
BUG_ON(!list_empty(&cgrp->pidlists));
-
call_rcu(&cgrp->rcu_head, free_cgroup_rcu
);
+
kfree_rcu(cgrp, rcu_head
);
}
iput(inode);
}