From: Jesper Dangaard Brouer Date: Fri, 26 Jun 2009 10:45:48 +0000 (+0000) Subject: bridge: Use rcu_barrier() instead of syncronize_net() on unload. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=473c22d759e73cbbe604f41105b497817cc2ee8e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git bridge: Use rcu_barrier() instead of syncronize_net() on unload. When unloading modules that uses call_rcu() callbacks, then we must use rcu_barrier(). This module uses syncronize_net() which is not enough to be sure that all callback has been completed. Acked-by: Paul E. McKenney Signed-off-by: Jesper Dangaard Brouer Signed-off-by: David S. Miller --- diff --git a/net/bridge/br.c b/net/bridge/br.c index 9aac5213105a..e1241c76239a 100644 --- a/net/bridge/br.c +++ b/net/bridge/br.c @@ -93,7 +93,7 @@ static void __exit br_deinit(void) unregister_pernet_subsys(&br_net_ops); - synchronize_net(); + rcu_barrier(); /* Wait for completion of call_rcu()'s */ br_netfilter_fini(); #if defined(CONFIG_ATM_LANE) || defined(CONFIG_ATM_LANE_MODULE)