Skip to content
  • Emilio G. Cota's avatar
    9c7d64eb
    test-qht: perform lookups under rcu_read_lock · 9c7d64eb
    Emilio G. Cota authored
    
    
    qht_lookup is meant to be called from an RCU read-critical
    section. Make sure we're in such a section in test-qht
    when performing lookups, despite the fact that no races
    in qht can be triggered by test-qht since it is single-threaded.
    
    Note that rcu_register_thread is already called by the
    rcu_after_fork hook, and therefore duplicating it here would
    be a bug.
    
    Signed-off-by: default avatarEmilio G. Cota <cota@braap.org>
    Message-Id: <1475706880-10667-4-git-send-email-cota@braap.org>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    9c7d64eb
    test-qht: perform lookups under rcu_read_lock
    Emilio G. Cota authored
    
    
    qht_lookup is meant to be called from an RCU read-critical
    section. Make sure we're in such a section in test-qht
    when performing lookups, despite the fact that no races
    in qht can be triggered by test-qht since it is single-threaded.
    
    Note that rcu_register_thread is already called by the
    rcu_after_fork hook, and therefore duplicating it here would
    be a bug.
    
    Signed-off-by: default avatarEmilio G. Cota <cota@braap.org>
    Message-Id: <1475706880-10667-4-git-send-email-cota@braap.org>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Loading