Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions test/multicqes_drain.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/* SPDX-License-Identifier: MIT */
/*
* Description: generic tests for io_uring drain io
* Description: generic tests for io_uring drain IO
*
* The main idea is to randomly generate different type of sqe to
* challenge the drain logic. There are some restrictions for the
* generated sqes, details in io_uring maillist:
* Randomly generates SQEs of different types to exercise the drain logic.
* The generated SQEs follow restrictions documented at:
* https://lore.kernel.org/io-uring/39a49b4c-27c2-1035-b250-51daeccaab9b@linux.alibaba.com/
*
*/
#include <errno.h>
#include <stdio.h>
Expand Down Expand Up @@ -191,6 +189,7 @@ static int test_generic_drain(struct io_uring *ring)
int i, j, ret, arg = 0;
int pipes[max_entry][2];
int pre_flags = 0;
multi_cap = max_entry / 5;

for (i = 0; i < max_entry; i++) {
if (pipe(pipes[i]) != 0) {
Expand Down
Loading