sunrpc/auth_gss: Call rcu_barrier() on module unload.
authorJesper Dangaard Brouer <hawk@comx.dk>
Mon, 8 Jun 2009 03:11:48 +0000 (03:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jun 2009 08:11:27 +0000 (01:11 -0700)
As the module uses rcu_call() we should make sure that all
rcu callback has been completed before removing the code.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sunrpc/auth_gss/auth_gss.c

index e630b38a604718a57c80a93e7556452859cf35c1..66d458fc69206e69a50663f12b0a491a750b7c80 100644 (file)
@@ -1548,6 +1548,7 @@ static void __exit exit_rpcsec_gss(void)
 {
        gss_svc_shutdown();
        rpcauth_unregister(&authgss_ops);
+       rcu_barrier(); /* Wait for completion of call_rcu()'s */
 }
 
 MODULE_LICENSE("GPL");