Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for completely non-blocking I/O submission #6

Open
hmwill opened this issue Mar 6, 2018 · 0 comments
Open

Add support for completely non-blocking I/O submission #6

hmwill opened this issue Mar 6, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@hmwill
Copy link
Owner

hmwill commented Mar 6, 2018

Even though meant to be non-blocking. io_submit can block in some cases. io_submit supports a flag RWF_NOWAIT that can be used to require the call to be non-blocking. Specifically, this option means:
Don't wait if the I/O will block for operations such as file block allocations, dirty page flush, mutex locks, or a congested block device inside the kernel.

When RMF_NOWAIT is set, I/O requests may fail immediately with EAGAIN.

This issue is about investigating if RWF_NOWAIT can be meaningfully integrated into this API.

@hmwill hmwill added the enhancement New feature or request label Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant