Monthly Archives: July 2010

Stupid RCU Tricks: Holding Off RCU Read-Side Critical Sections

RCU callbacks are registered via call_rcu(). After an RCU grace period elapses, the callback (which is a C-language function) is invoked. RCU’s fundamental guarantee states that once an RCU grace period has elapsed, all RCU read-side critical sections that were … Continue reading

Posted in Uncategorized | Tagged | 1 Comment

Stupid SMP Tricks: Memory Barriers (RWC with rmb)

In the previous posting a code fragment dealt with memory ordering. Strangely enough, the foo_1() function contained only a pair of reads, but separated them with a full smp_mb() barrier. So why not use an smp_rmb() instead? Perhaps something like … Continue reading

Posted in Uncategorized | Tagged | 2 Comments