On 9/14/26 09:53, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> Use qemu-io command instead.
>
> (CI didn't catch this because build-without-defaults doesn't build ahci..)
>
> CC: Denis V. Lunev <den@openvz.org>
> Fixes: bc4f7b451e1f ("tests/qtest/ahci: fix a racy deadlock in the engine stop test")
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> tests/qtest/ahci-test.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/qtest/ahci-test.c b/tests/qtest/ahci-test.c
> index c49aa618629b..925f139d7590 100644
> --- a/tests/qtest/ahci-test.c
> +++ b/tests/qtest/ahci-test.c
> @@ -1916,7 +1916,7 @@ static void test_write_engine_stop_in_flight(void)
> * Retire the abandoned write. handle_cmd() drops a command that arrives
> * while the drive is still busy and nothing retries it.
> */
> - g_free(qtest_hmp(ahci->parent->qts, "qemu-io drive0 \"aio_flush\""));
> + qtest_qemu_io(ahci->parent->qts, "drive0", "aio_flush");
>
> /* Round-trip through the device to confirm qemu is still alive. */
> ahci_px_rreg(ahci, port, AHCI_PX_TFD);
Reviewed-by: Denis V. Lunev <den@openvz.org>