From: Jozsef Kadlecsik Date: Tue, 6 Jan 2015 07:22:05 +0000 (+0100) Subject: There's no need to call synchronize_rcu() with kfree_rcu() X-Git-Tag: pablo~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4145a212b337b92da870b4dc5bc267fd5f270c0;p=ipset There's no need to call synchronize_rcu() with kfree_rcu() --- diff --git a/kernel/net/netfilter/ipset/ip_set_list_set.c b/kernel/net/netfilter/ipset/ip_set_list_set.c index c30183f..f71b8e5 100644 --- a/kernel/net/netfilter/ipset/ip_set_list_set.c +++ b/kernel/net/netfilter/ipset/ip_set_list_set.c @@ -310,11 +310,7 @@ list_set_uadd(struct ip_set *set, void *value, const struct ip_set_ext *ext, list_add_rcu(&e->list, &prev->list); else list_add_tail_rcu(&e->list, &map->members); - spin_unlock_bh(&set->lock); - - synchronize_rcu_bh(); - spin_lock_bh(&set->lock); return 0; }