Make pipe honor IOCB_NOWAIT
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | pipe: honor iocb IOCB_NOWAIT flag as wellfs/ | +2 | 0 replies | |
| 2/2 | io_uring: assume read_iter/write_iter are safe for nonblockingio_uring/ io_uring/ io_uring/ | +12 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCHSET for-next 0/2] Make pipe honor IOCB_NOWAIT
Hi,
File types that implement read_iter/write_iter should check for IOCB_NOWAIT in conjunction with O_NONBLOCK, so it can correctly bail with -EAGAIN if we need to block for space/data. pipe doesn't currently do that, and that's the primary reason for why io_uring needs to use a slower path for it.
Add the appropriate check, and expand the io_uring "understands nonblock" check so that we catch it.
Signature · 1 line
Jens Axboe