Skip to content

Make pipe honor IOCB_NOWAIT

Jens Axboe io-uring linux-fsdevel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pipe: honor iocb IOCB_NOWAIT flag as wellfs/pipe.c+2 -20 replies
2/2io_uring: assume read_iter/write_iter are safe for nonblockingio_uring/filetable.h io_uring/io_uring.c io_uring/rw.c+12 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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