Skip to content
Snippets Groups Projects
  • Nadav Har'El's avatar
    9f0e1287
    Add rcu_lock_in_preempt_type · 9f0e1287
    Nadav Har'El authored
    
    Add a new lock, "rcu_read_lock_in_preempt_disabled", which is exactly
    like rcu_read_lock but assuming that preemption is already disabled.
    Because all our rcu_read_lock does is to disable preemption, the new
    lock type currently does absolutely nothing - but in some future
    implementation of RCU it might need to do something.
    
    We'll use the new lock type in the following patch, as an optimization
    over the regular rcu_read_lock.
    
    Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
    Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
    9f0e1287
    History
    Add rcu_lock_in_preempt_type
    Nadav Har'El authored
    
    Add a new lock, "rcu_read_lock_in_preempt_disabled", which is exactly
    like rcu_read_lock but assuming that preemption is already disabled.
    Because all our rcu_read_lock does is to disable preemption, the new
    lock type currently does absolutely nothing - but in some future
    implementation of RCU it might need to do something.
    
    We'll use the new lock type in the following patch, as an optimization
    over the regular rcu_read_lock.
    
    Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
    Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>