Selaa lähdekoodia

decnet: Use rcu_barrier() on module unload.

The decnet module unloading as been disabled with a '#if 0' statement,
because it have had issues.

We add a rcu_barrier() anyhow for correctness.

The maintainer (Chrissie Caulfield) will look into the unload issue
when time permits.

Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Chrissie Caulfield <christine.caulfield@googlemail.com>
Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Jesper Dangaard Brouer 16 vuotta sitten
vanhempi
commit
10e8544801
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      net/decnet/af_decnet.c

+ 2 - 0
net/decnet/af_decnet.c

@@ -2413,6 +2413,8 @@ static void __exit decnet_exit(void)
 	proc_net_remove(&init_net, "decnet");
 	proc_net_remove(&init_net, "decnet");
 
 
 	proto_unregister(&dn_proto);
 	proto_unregister(&dn_proto);
+
+	rcu_barrier_bh(); /* Wait for completion of call_rcu_bh()'s */
 }
 }
 module_exit(decnet_exit);
 module_exit(decnet_exit);
 #endif
 #endif