kernel/rcutree.c
rcu_check_callbacks ->
s3c2410_timer_interrupt -》 timer_tick -》update_process_times -》 rcu_check_callbacks ->
__rcu_pending-> print_other_cpu_stall
在時鐘中斷中進行檢查
INFO: RCU detected CPU stalls:
使用注意方式:
RCU 保護的代碼裏面不能進入睡眠狀態
受訪問的資源必須通過指針訪問
RCU 使用方式:
1. 讀操作時 引用指針必須使用rcu_dereference(ptr)
2. 受訪問的資源必須通過指針訪問
3. 修改ptr 指向的對象時 必須調用 rcu_assign_pointer
參考資料:
linux內核 RCU機制詳解 講到 rcu 調用使用方法。
http://blog.csdn.net/xabc3000/article/details/15335131
https://www.kernel.org/doc/Documentation/RCU/stallwarn.txt
http://blog.chinaunix.net/uid-24517893-id-2381246.html