commit | 3e6bed619a1d13858e540e01aae275abdf9146ae | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Fri Mar 03 12:45:29 2023 +0100 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu May 25 10:18:33 2023 +0200 |
tree | 08715eb19099a77552849001bd2cb273d92060b4 | |
parent | 6ee7c82d0df9bb6e972a8ea689b935df3ba37486 [diff] |
monitor: cleanup detection of qmp_dispatcher_co shutting down Instead of overloading qmp_dispatcher_co_busy, make the coroutine pointer NULL. This will make things break spectacularly if somebody tries to start a request after monitor_cleanup(). AIO_WAIT_WHILE_UNLOCKED() does not need qatomic_mb_read(), because the macro contains all the necessary memory barriers. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>