diff options
author | Jesper Dangaard Brouer <hawk@comx.dk> | 2009-06-08 05:11:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-10 10:11:24 +0200 |
commit | 382bfeec48e43c416af9b271b9b70d2f61ef32d2 (patch) | |
tree | 9b9e400fe75b57f6f09da071306968ed8d12ef98 | |
parent | nfnetlink_queue: Use rcu_barrier() on module unload. (diff) | |
download | linux-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.c | 2 |
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); } |