diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-03-03 12:51:33 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-05-25 10:18:33 +0200 |
commit | 0ff25537018c0939919a35886265c38db28b2a8a (patch) | |
tree | 3cc80836b6b28de353bffe206a05235a65e92737 /qemu-io-cmds.c | |
parent | 3e6bed619a1d13858e540e01aae275abdf9146ae (diff) | |
download | qemu-0ff25537018c0939919a35886265c38db28b2a8a.zip qemu-0ff25537018c0939919a35886265c38db28b2a8a.tar.gz qemu-0ff25537018c0939919a35886265c38db28b2a8a.tar.bz2 |
monitor: cleanup fetching of QMP requests
Use a continue statement so that "after going to sleep" is treated the same
way as "after processing a request". Pull the monitor_lock critical
section out of monitor_qmp_requests_pop_any_with_lock() and protect
qmp_dispatcher_co_shutdown with the monitor_lock.
The two changes are complex to separate because monitor_qmp_dispatcher_co()
previously had a complicated logic to check for shutdown both before
and after going to sleep.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qemu-io-cmds.c')
0 files changed, 0 insertions, 0 deletions