-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iopoll: test that we always enter the ring
If the ring is configured to operate in poll mode we need to always enter the kernel to fetch new events. This behavior was introduced in bf3aeb3 but recently broken. Break me once, shame on you. Break me twice, shame on me: - Add a unit test. The unit test submits sqes manually through the system call, which guarantees that IORING_ENTER_GETEVENTS will not be present in the flag set during the initial submission. The only way we can ever fetch new I/O events is if io_uring_submit indeed will enter the ring despite not having new sqes to submit. This test passes with 1bafb3c but fails before it due to the aforementioned regression. Signed-off-by: Glauber Costa <glauber@datadoghq.com>
- Loading branch information
Glauber Costa
committed
Aug 21, 2020
1 parent
1bafb3c
commit 5964134
Showing
2 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters