diff options
| author | Emilio G. Cota | 2016-10-06 00:34:40 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2016-10-06 18:04:13 +0200 |
| commit | 9c7d64eb2a47033c9697fb4a5a540af1aa3915ab (patch) | |
| tree | 955534fa86e4a1b1308015efc000920edada9c34 /scripts | |
| parent | qht: fix unlock-after-free segfault upon resizing (diff) | |
| download | qemu-9c7d64eb2a47033c9697fb4a5a540af1aa3915ab.tar.gz qemu-9c7d64eb2a47033c9697fb4a5a540af1aa3915ab.tar.xz qemu-9c7d64eb2a47033c9697fb4a5a540af1aa3915ab.zip | |
test-qht: perform lookups under rcu_read_lock
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: Emilio G. Cota <cota@braap.org>
Message-Id: <1475706880-10667-4-git-send-email-cota@braap.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
