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

Water_resources.2C_water_use_and_infrastructure Water_supply_and_sanitation_in_Burkina_Faso

History Rogers_Park,_Chicago

Cuisine Culture_of_Laos