1. If you were relying on interrupts being disabled within an
interrupt handler (which they are -not- in -rt), then you would
either need to add some form of local_irq_save() or, as you say,
go to the rcu_read_lock() and synchronize_rcu() interfaces.
2. If updates needed to use callbacks rather than synchronous waits
for grace periods, in other words, if you needed call_rcu()
instead of synchronize_rcu(). Of course, a callback API for
_sched (call_rcu_sched() or some such) could be added if needed,
though it would be better to avoid the API proliferation unless
really badly needed.
本文探讨了在实时系统中使用Read-Copy-Update (RCU)机制时的关键问题。包括在中断处理器中如何正确实现局部中断保存,以及如何通过call_rcu()替代同步等待优雅周期结束的方法。此外还讨论了在必要时引入调度回调API的可能性。
1047

被折叠的 条评论
为什么被折叠?



