public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCHSET for-next 0/2] Make pipe honor IOCB_NOWAIT
@ 2023-03-07 15:45 Jens Axboe
  2023-03-07 15:45 ` [PATCH 1/2] pipe: honor iocb IOCB_NOWAIT flag as well Jens Axboe
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jens Axboe @ 2023-03-07 15:45 UTC (permalink / raw)
  To: io-uring, linux-fsdevel; +Cc: brauner

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.

-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-08  0:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-07 15:45 [PATCHSET for-next 0/2] Make pipe honor IOCB_NOWAIT Jens Axboe
2023-03-07 15:45 ` [PATCH 1/2] pipe: honor iocb IOCB_NOWAIT flag as well Jens Axboe
2023-03-07 15:45 ` [PATCH 2/2] io_uring: assume read_iter/write_iter are safe for nonblocking Jens Axboe
2023-03-08  0:19 ` [PATCHSET for-next 0/2] Make pipe honor IOCB_NOWAIT Dave Chinner
2023-03-08  0:31   ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox