]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net,rcu: Convert call_rcu(xt_rateest_free_rcu) to kfree_rcu()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 2 May 2011 08:00:18 +0000 (01:00 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 1 Aug 2011 08:36:58 +0000 (01:36 -0700)
commit4f46900ef402aeeb9afc20d16eb56a8f86237000
tree0af2169fe892016ab6a05684bdb7ec7487ac9b84
parentbd1a5c5a5b31bab8dc5a70105c5acafbd7f19f04
net,rcu: Convert call_rcu(xt_rateest_free_rcu) to kfree_rcu()

The RCU callback xt_rateest_free_rcu() just calls kfree(), so we can
use kfree_rcu() instead of call_rcu().  This also allows us to dispense
with an rcu_barrier() call, speeding up unloading of this module.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Patrick McHardy <kaber@trash.net>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
net/netfilter/xt_RATEEST.c