diff options
author | Jesper Dangaard Brouer <hawk@comx.dk> | 2009-06-07 23:11:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-10 04:11:24 -0400 |
commit | 382bfeec48e43c416af9b271b9b70d2f61ef32d2 (patch) | |
tree | 9b9e400fe75b57f6f09da071306968ed8d12ef98 | |
parent | 67137f3cc727e4da0297ffd7bfade837aa15ecfa (diff) |
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) | |||
903 | } | 903 | } |
904 | spin_unlock(&can_rcvlists_lock); | 904 | spin_unlock(&can_rcvlists_lock); |
905 | 905 | ||
906 | rcu_barrier(); /* Wait for completion of call_rcu()'s */ | ||
907 | |||
906 | kmem_cache_destroy(rcv_cache); | 908 | kmem_cache_destroy(rcv_cache); |
907 | } | 909 | } |
908 | 910 | ||