From: Ursula Braun Date: Sat, 16 Nov 2019 16:47:31 +0000 (+0100) Subject: net/smc: use rcu_barrier() on module unload X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4ead9c96d528e1b9937382321910a2bf35fc1a86;p=openwrt%2Fstaging%2Fblogic.git net/smc: use rcu_barrier() on module unload Add rcu_barrier() to make sure no RCU readers or callbacks are pending when the module is unloaded. Signed-off-by: Ursula Braun Signed-off-by: Karsten Graul Signed-off-by: David S. Miller --- diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c index 42b7fb8ab22b..cde4dc0ed173 100644 --- a/net/smc/af_smc.c +++ b/net/smc/af_smc.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -2111,6 +2112,7 @@ static void __exit smc_exit(void) proto_unregister(&smc_proto); smc_pnet_exit(); unregister_pernet_subsys(&smc_net_ops); + rcu_barrier(); } module_init(smc_init);