summaryrefslogtreecommitdiffstats
path: root/include/exec/exec-all.h
diff options
context:
space:
mode:
authorPaolo Bonzini2018-09-12 19:10:38 +0200
committerFam Zheng2018-09-26 04:46:21 +0200
commitd7be5dd19c0df7f76e1b42f0c2cbbabefa1974cb (patch)
treebe99efc03f1c05806d4e180b2f4feb1166dfa975 /include/exec/exec-all.h
parentMerge remote-tracking branch 'remotes/xanclic/tags/pull-block-2018-09-25' int... (diff)
downloadqemu-d7be5dd19c0df7f76e1b42f0c2cbbabefa1974cb.tar.gz
qemu-d7be5dd19c0df7f76e1b42f0c2cbbabefa1974cb.tar.xz
qemu-d7be5dd19c0df7f76e1b42f0c2cbbabefa1974cb.zip
aio-posix: fix concurrent access to poll_disable_cnt
It is valid for an aio_set_fd_handler to happen concurrently with aio_poll. In that case, poll_disable_cnt can change under the heels of aio_poll, and the assertion on poll_disable_cnt can fail in run_poll_handlers. Therefore, this patch simply checks the counter on every polling iteration. There are no particular needs for ordering, since the polling loop is terminated anyway by aio_notify at the end of aio_set_fd_handler. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20180912171040.1732-2-pbonzini@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'include/exec/exec-all.h')
0 files changed, 0 insertions, 0 deletions