3 ms·
I'm not very familiar with the kernel RCU, but I believe that not only rcu_read_lock does not block, it doesn't even issue any expensive memory barriers.
by gpderetta 10y ago
I'm not very familiar with the kernel RCU, but I believe that not only rcu_read_lock does not block, it doesn't even issue any expensive memory barriers.
- webaholic 10y agoYou are right. It does not even guarantee any mutual exclusion in the read critical section i.e., the data you are reading can be changed while you are in the critical section. RCU, as the article claims, does not work in all situations.
- gpderetta 10y agoOne way to think of RCU is that it enables working with (a restricted form of) persistent data structures in languages without GC.