[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v3 19/19] test-bdrv-drain: Test draining job sou
From: |
Max Reitz |
Subject: |
Re: [Qemu-block] [PATCH v3 19/19] test-bdrv-drain: Test draining job source child and parent |
Date: |
Mon, 24 Sep 2018 19:23:43 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 |
On 20.09.18 18:19, Kevin Wolf wrote:
> For the block job drain test, don't only test draining the source and
> the target node, but create a backing chain for the source
> (source_backing <- source <- source_overlay) and test draining each of
> the nodes in it.
>
> When using iothreads, the source node (and therefore the job) is in a
> different AioContext than the drain, which happens from the main
> thread. This way, the main thread waits in AIO_WAIT_WHILE() for the
> iothread to make process and aio_wait_kick() is required to notify it.
> The test validates that calling bdrv_wakeup() for a child or a parent
> node will actually notify AIO_WAIT_WHILE() instead of letting it hang.
>
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> tests/test-bdrv-drain.c | 75
> +++++++++++++++++++++++++++++++++++++++++++------
> 1 file changed, 67 insertions(+), 8 deletions(-)
Reviewed-by: Max Reitz <address@hidden>
signature.asc
Description: OpenPGP digital signature
- [Qemu-block] [PATCH v3 10/19] block-backend: Fix potential double blk_delete(), (continued)
- [Qemu-block] [PATCH v3 10/19] block-backend: Fix potential double blk_delete(), Kevin Wolf, 2018/09/20
- [Qemu-block] [PATCH v3 07/19] test-bdrv-drain: Test AIO_WAIT_WHILE() in completion callback, Kevin Wolf, 2018/09/20
- [Qemu-block] [PATCH v3 14/19] test-bdrv-drain: Test nested poll in bdrv_drain_poll_top_level(), Kevin Wolf, 2018/09/20
- [Qemu-block] [PATCH v3 16/19] test-bdrv-drain: AIO_WAIT_WHILE() in job .commit/.abort, Kevin Wolf, 2018/09/20
- [Qemu-block] [PATCH v3 15/19] job: Avoid deadlocks in job_completed_txn_abort(), Kevin Wolf, 2018/09/20
- [Qemu-block] [PATCH v3 17/19] test-bdrv-drain: Fix outdated comments, Kevin Wolf, 2018/09/20
- [Qemu-block] [PATCH v3 19/19] test-bdrv-drain: Test draining job source child and parent, Kevin Wolf, 2018/09/20
- [Qemu-block] [PATCH v3 18/19] block: Use a single global AioWait, Kevin Wolf, 2018/09/20