Skip to content

test/reg-fd-only: Relax io_uring_submit() return value check#1605

Open
chrehrhardt wants to merge 1 commit into
axboe:masterfrom
chrehrhardt:reg_fd_only
Open

test/reg-fd-only: Relax io_uring_submit() return value check#1605
chrehrhardt wants to merge 1 commit into
axboe:masterfrom
chrehrhardt:reg_fd_only

Conversation

@chrehrhardt

Copy link
Copy Markdown

For SQPOLL rings the man page of io_uring_submit(3) states that the return value can be higher than the number of submitted SQEs and on a very slow overloaded system we sometimes see the test fail with:

| short submit 16
| test 8 failed

To fix this, allow the return value to be higher than expected.

For SQPOLL rings the man page of io_uring_submit(3) states that the
return value can be higher than the number of submitted SQEs and on
a very slow overloaded system we sometimes see the test fail with:

| short submit 16
| test 8 failed

To fix this, allow the return value to be higher than expected.

Signed-off-by: Christian A. Ehrhardt <lk@c--e.de>
@krisman

krisman commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Make sense to me. We are submitting 32nops in batches of 8. If sqpoll didn't see the full previous 8, __io_uring_flush_sq can report a higher value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants