Analogy_with_reader-writer_locking Read-copy-update



the differences between 2 approaches quite small. read-side locking moves rcu_read_lock , rcu_read_unlock, update-side locking moves reader-writer lock simple spinlock, , synchronize_rcu precedes kfree.


however, there 1 potential catch: read-side , update-side critical sections can run concurrently. in many cases, not problem, necessary check regardless. example, if multiple independent list updates must seen single atomic update, converting rcu require special care.


also, presence of synchronize_rcu means rcu version of delete can block. if problem, call_rcu used call_rcu (kfree, p) in place of synchronize_rcu. useful in combination reference counting.








Comments

Popular posts from this blog

History First_Bulgarian_Empire

Discography Bruce_Driscoll

Mediterranean_Privateer Ottoman_Algeria