[GIT PULL] Pipe FMODE_NOWAIT support

From: Jens Axboe
Date: Sat May 06 2023 - 06:33:26 EST


Hi Linus,

Here's the revised edition of the FMODE_NOWAIT support for pipes, in
which we just flag it as such supporting FMODE_NOWAIT unconditionally,
but clear it if we ever end up using splice/vmsplice on the pipe. The
pipe read/write side is perfectly fine for nonblocking IO, however
splice and vmsplice can potentially wait for IO with the pipe lock held.

Please pull!


The following changes since commit 457391b0380335d5e9a5babdec90ac53928b23b4:

Linux 6.3 (2023-04-23 12:02:52 -0700)

are available in the Git repository at:

git://git.kernel.dk/linux.git tags/pipe-nonblock-2023-05-06

for you to fetch changes up to afed6271f5b0d78ca1a3739c1da4aa3629b26bba:

pipe: set FMODE_NOWAIT on pipes (2023-04-25 14:08:59 -0600)

----------------------------------------------------------------
pipe-nonblock-2023-05-06

----------------------------------------------------------------
Jens Axboe (2):
splice: clear FMODE_NOWAIT on file if splice/vmsplice is used
pipe: set FMODE_NOWAIT on pipes

fs/pipe.c | 3 +++
fs/splice.c | 34 ++++++++++++++++++++++++++++++----
2 files changed, 33 insertions(+), 4 deletions(-)

--
Jens Axboe