diff options
author | 2017-08-02 17:55:54 +0200 | |
---|---|---|
committer | 2017-08-02 22:41:02 +0200 | |
commit | 3898da947bbaf9e7fd5816e825978d360028bba2 (patch) | |
tree | 5af705bb61bbc9760de0fbc3d102227f0b21fed4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: X86: init irq->level in kvm_pv_kick_cpu_op (diff) | |
download | linux-rng-3898da947bbaf9e7fd5816e825978d360028bba2.tar.xz linux-rng-3898da947bbaf9e7fd5816e825978d360028bba2.zip |
KVM: avoid using rcu_dereference_protected
During teardown, accesses to memslots and buses are using
rcu_dereference_protected with an always-true condition because
these accesses are done outside the usual mutexes. This
is because the last reference is gone and there cannot be any
concurrent modifications, but rcu_dereference_protected is
ugly and unobvious.
Instead, check the refcount in kvm_get_bus and __kvm_memslots.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions