diff options
| author | Paolo Bonzini | 2016-10-03 18:14:15 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2016-10-07 13:34:07 +0200 |
| commit | 5b8bb3595a2941e9408021f1080e60ce86d677d2 (patch) | |
| tree | 6703cf075db4beb6f35110568491136f7b90ef4e /docs | |
| parent | block: use bdrv_add_before_write_notifier (diff) | |
| download | qemu-5b8bb3595a2941e9408021f1080e60ce86d677d2.tar.gz qemu-5b8bb3595a2941e9408021f1080e60ce86d677d2.tar.xz qemu-5b8bb3595a2941e9408021f1080e60ce86d677d2.zip | |
async: add aio_bh_schedule_oneshot
qemu_bh_delete is already clearing bh->scheduled at the same time
as it's setting bh->deleted. Since it's not using any memory
barriers, there is no synchronization going on for bh->deleted,
and this makes the bh->deleted checks superfluous in aio_compute_timeout,
aio_bh_poll and aio_ctx_check.
Just remove them, and put the (bh->scheduled && bh->deleted) combo
to work in a new function aio_bh_schedule_oneshot. The new function
removes the need to save the QEMUBH pointer between the creation
and the execution of the bottom half.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
