diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2011-03-15 06:00:14 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-05-08 01:50:50 -0400 |
commit | e57859854aaac9b7ce0db3fe4959190a1a80b60a (patch) | |
tree | 05aee1dc0345c59ba425fa26c5eeebaef6a20938 /net/ipv6/addrconf.c | |
parent | 38f57d1a4b4c13db92c7f6300a4e4ae70ff94d2b (diff) |
net,rcu: convert call_rcu(inet6_ifa_finish_destroy_rcu) to kfree_rcu()
The rcu callback inet6_ifa_finish_destroy_rcu() just calls a kfree(),
so we use kfree_rcu() instead of the call_rcu(inet6_ifa_finish_destroy_rcu).
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index c406f564b772..8f13d88d7dba 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -529,12 +529,6 @@ static int addrconf_fixup_forwarding(struct ctl_table *table, int *p, int old) | |||
529 | } | 529 | } |
530 | #endif | 530 | #endif |
531 | 531 | ||
532 | static void inet6_ifa_finish_destroy_rcu(struct rcu_head *head) | ||
533 | { | ||
534 | struct inet6_ifaddr *ifp = container_of(head, struct inet6_ifaddr, rcu); | ||
535 | kfree(ifp); | ||
536 | } | ||
537 | |||
538 | /* Nobody refers to this ifaddr, destroy it */ | 532 | /* Nobody refers to this ifaddr, destroy it */ |
539 | void inet6_ifa_finish_destroy(struct inet6_ifaddr *ifp) | 533 | void inet6_ifa_finish_destroy(struct inet6_ifaddr *ifp) |
540 | { | 534 | { |
@@ -555,7 +549,7 @@ void inet6_ifa_finish_destroy(struct inet6_ifaddr *ifp) | |||
555 | } | 549 | } |
556 | dst_release(&ifp->rt->dst); | 550 | dst_release(&ifp->rt->dst); |
557 | 551 | ||
558 | call_rcu(&ifp->rcu, inet6_ifa_finish_destroy_rcu); | 552 | kfree_rcu(ifp, rcu); |
559 | } | 553 | } |
560 | 554 | ||
561 | static void | 555 | static void |