From ac393d60a3d390ffc3b5f79e9099ecb805e80ba9 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 2 Dec 2024 13:48:58 -0500 Subject: ioq: Submit and pop requests in batches The new ioq_submit() function is now necessary to call to ensure the pending request batch is flushed. --- tests/ioq.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/ioq.c') diff --git a/tests/ioq.c b/tests/ioq.c index f067436..1a0da97 100644 --- a/tests/ioq.c +++ b/tests/ioq.c @@ -49,6 +49,7 @@ static void check_ioq_push_block(void) { int ret = ioq_opendir(ioq, dir, AT_FDCWD, ".", 0, NULL); bfs_everify(ret == 0, "ioq_opendir()"); } + ioq_submit(ioq); bfs_verify(ioq_capacity(ioq) == 0); // Now cancel the queue, pushing an additional IOQ_STOP message -- cgit v1.2.3