]> git.proxmox.com Git - mirror_qemu.git/commit
block: introduce BDRV_POLL_WHILE
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Oct 2016 10:48:55 +0000 (12:48 +0200)
committerFam Zheng <famz@redhat.com>
Fri, 28 Oct 2016 13:50:18 +0000 (21:50 +0800)
commit88b062c2036cfd05b5111147736a08ba05ea05a9
treeb7018cd61ca309939b7197f7ad3ff729f9c0769d
parent6653a73d12fbac8c9b5c22bb21aef22759b28c1c
block: introduce BDRV_POLL_WHILE

We want the BDS event loop to run exclusively in the iothread that
owns the BDS's AioContext.  This macro will provide the synchronization
between the two event loops; for now it just wraps the common idiom
of a while loop around aio_poll.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-Id: <1477565348-5458-8-git-send-email-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
block/block-backend.c
block/io.c
block/qed-table.c
include/block/block.h