]> git.proxmox.com Git - mirror_qemu.git/commit
async: clarify usage of barriers in the polling case
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Mar 2023 09:43:52 +0000 (10:43 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Mar 2023 11:39:53 +0000 (12:39 +0100)
commit6229438cca037d42f44a96d38feb15cb102a444f
tree4b3e81042a60b8d355a918fa7cba17f10e3bf2f8
parent8dd48650b43dfde4ebea34191ac267e474bcc29e
async: clarify usage of barriers in the polling case

Explain that aio_context_notifier_poll() relies on
aio_notify_accept() to catch all the memory writes that were
done before ctx->notified was set to true.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/async.c