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:
04d4dfe
)
net,rcu: convert call_rcu(__nf_ct_ext_free_rcu) to kfree_rcu()
author
Lai Jiangshan
<
[email protected]
>
Fri, 18 Mar 2011 04:07:09 +0000
(12:07 +0800)
committer
Paul E. McKenney
<
[email protected]
>
Sun, 8 May 2011 05:51:07 +0000
(22:51 -0700)
The rcu callback __nf_ct_ext_free_rcu() just calls a kfree(),
so we use kfree_rcu() instead of the call_rcu(__nf_ct_ext_free_rcu).
Signed-off-by: Lai Jiangshan <
[email protected]
>
Acked-by: David S. Miller <
[email protected]
>
Signed-off-by: Paul E. McKenney <
[email protected]
>
Reviewed-by: Josh Triplett <
[email protected]
>
net/netfilter/nf_conntrack_extend.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_conntrack_extend.c
b/net/netfilter/nf_conntrack_extend.c
index 80a23ed62bb0739c2d9d97f195dbea57216230b5..05ecdc281a53da8b7e524ca80fdd7c85e882302b 100644
(file)
--- a/
net/netfilter/nf_conntrack_extend.c
+++ b/
net/netfilter/nf_conntrack_extend.c
@@
-68,12
+68,6
@@
nf_ct_ext_create(struct nf_ct_ext **ext, enum nf_ct_ext_id id, gfp_t gfp)
return (void *)(*ext) + off;
}
-static void __nf_ct_ext_free_rcu(struct rcu_head *head)
-{
- struct nf_ct_ext *ext = container_of(head, struct nf_ct_ext, rcu);
- kfree(ext);
-}
-
void *__nf_ct_ext_add(struct nf_conn *ct, enum nf_ct_ext_id id, gfp_t gfp)
{
struct nf_ct_ext *old, *new;
@@
-114,7
+108,7
@@
void *__nf_ct_ext_add(struct nf_conn *ct, enum nf_ct_ext_id id, gfp_t gfp)
(void *)old + old->offset[i]);
rcu_read_unlock();
}
-
call_rcu(&old->rcu, __nf_ct_ext_free_
rcu);
+
kfree_rcu(old,
rcu);
ct->ext = new;
}