]> granicus.if.org Git - ipset/commitdiff
There's no need to call synchronize_rcu() with kfree_rcu()
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 6 Jan 2015 07:22:05 +0000 (08:22 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 6 Jan 2015 07:22:05 +0000 (08:22 +0100)
kernel/net/netfilter/ipset/ip_set_list_set.c

index c30183f9191a48276263f2311a20ef9ef821916f..f71b8e5f40667c3f649215db8cbbecefa46f879f 100644 (file)
@@ -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;
 }