summaryrefslogtreecommitdiffstats
path: root/scripts/qapi/introspect.py
diff options
context:
space:
mode:
authorRichard Henderson2022-04-17 20:30:18 +0200
committerRichard Henderson2022-04-20 19:51:11 +0200
commit30f5a73ac3be6a7ade2fc049162dc85c1bed9a9a (patch)
tree7670d1fa6300585a1a687defc23580caeb6bb40d /scripts/qapi/introspect.py
parentutil/log: Rename QemuLogFile to RCUCloseFILE (diff)
downloadqemu-30f5a73ac3be6a7ade2fc049162dc85c1bed9a9a.tar.gz
qemu-30f5a73ac3be6a7ade2fc049162dc85c1bed9a9a.tar.xz
qemu-30f5a73ac3be6a7ade2fc049162dc85c1bed9a9a.zip
util/log: Limit RCUCloseFILE to file closing
Use FILE* for global_file. We can perform an rcu_read on that just as easily as RCUCloseFILE*. This simplifies a couple of places, where previously we required taking the rcu_read_lock simply to avoid racing to dereference RCUCloseFile->fd. Only allocate the RCUCloseFile prior to call_rcu. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220417183019.755276-39-richard.henderson@linaro.org>
Diffstat (limited to 'scripts/qapi/introspect.py')
0 files changed, 0 insertions, 0 deletions