Linux rcu Overview

  

There is no need for protection. The key is that the writer will create a new copy, and when all readers have used the current copy, the old copy (call_rcu) is allowed to be written. The following changes are specified to cause the quiescent state to end: 1. process switch2.user space3. The null loop specifies that the reader calls rcu_read_unlock before the above state. Scope of use: 1.rcu only protects data structures that are dynamically allocated and referenced by pointers. 2. In the protected critical section, any kernel control path cannot sleep

Copyright © Windows knowledge All Rights Reserved