summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <hawk@comx.dk>2009-06-08 05:11:38 +0200
committerDavid S. Miller <davem@davemloft.net>2009-06-10 10:11:24 +0200
commit382bfeec48e43c416af9b271b9b70d2f61ef32d2 (patch)
tree9b9e400fe75b57f6f09da071306968ed8d12ef98
parentnfnetlink_queue: Use rcu_barrier() on module unload. (diff)
downloadlinux-382bfeec48e43c416af9b271b9b70d2f61ef32d2.tar.xz
linux-382bfeec48e43c416af9b271b9b70d2f61ef32d2.zip
can: af_can.c use rcu_barrier() on module unload.
This module uses rcu_call() thus it should use rcu_barrier() on module unload. Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk> Acked-by: Oliver Hartkopp <oliver@hartkopp.net> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/can/af_can.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/can/af_can.c b/net/can/af_can.c
index 10f0528c3bf5..e733725b11d4 100644
--- a/net/can/af_can.c
+++ b/net/can/af_can.c
@@ -903,6 +903,8 @@ static __exit void can_exit(void)
}
spin_unlock(&can_rcvlists_lock);
+ rcu_barrier(); /* Wait for completion of call_rcu()'s */
+
kmem_cache_destroy(rcv_cache);
}