提交 382bfeec 编写于 作者: J Jesper Dangaard Brouer 提交者: David S. Miller

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: NJesper Dangaard Brouer <hawk@comx.dk>
Acked-by: NOliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 67137f3c
...@@ -903,6 +903,8 @@ static __exit void can_exit(void) ...@@ -903,6 +903,8 @@ static __exit void can_exit(void)
} }
spin_unlock(&can_rcvlists_lock); spin_unlock(&can_rcvlists_lock);
rcu_barrier(); /* Wait for completion of call_rcu()'s */
kmem_cache_destroy(rcv_cache); kmem_cache_destroy(rcv_cache);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册