vfs fixes
Christian Brauner
maintainerHey Linus,
/* Summary */
During the pipe nonblock rework that made it in the check for both O_NONBLOCK and IOCB_NOWAIT was dropped. Both checks need to be performed to ensure that files without O_NONBLOCK but IOCB_NOWAIT don't block when writing to or reading from a pipe.
This just contains the fix adding the check for IOCB_NOWAIT back in.
---
On a personal note, I'm still traveling because of LSFMMBPF (I'm probably missing 5 letters and rearranging 3) and LSS and will only be back on a regular schedule starting Tuesday.
/* Testing */
clang: Ubuntu clang version 15.0.6
gcc: (Ubuntu 12.2.0-3ubuntu1) 12.2.0
All patches are based on 6.4-rc1 and have been sitting in linux-next. No build failures or warnings were observed. All old and new tests in fstests, selftests, and LTP pass without regressions.
/* Conflicts */
At the time of creating this PR no merge conflicts were reported from linux-next and no merge conflicts showed up doing a test-merge with current mainline.
The following changes since commit ac9a78681b921877518763ba0e89202254349d1b:
Linux 6.4-rc1 (2023-05-07 13:34:35 -0700)
are available in the Git repository at:
[email protected]:pub/scm/linux/kernel/git/vfs/vfs tags/vfs/v6.4-rc1/pipe
for you to fetch changes up to c04fe8e32f907ea668f3f802387c1148fdb0e6c9:
pipe: check for IOCB_NOWAIT alongside O_NONBLOCK (2023-05-12 17:17:27 +0200)
Please consider pulling these changes from the signed vfs/v6.4-rc1/pipe tag.
Thanks!
Christian
----------------------------------------------------------------
vfs/v6.4-rc1/pipe
----------------------------------------------------------------
Jens Axboe (1):
pipe: check for IOCB_NOWAIT alongside O_NONBLOCK
fs/pipe.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
The pull request you sent on Fri, 12 May 2023 17:31:51 +0200:
The pull request you sent on Fri, 12 May 2023 17:31:51 +0200:
Quoted 1 line
[email protected]:pub/scm/linux/kernel/git/vfs/vfs tags/vfs/v6.4-rc1/pipe
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/df8c2d13e227e4670ebe777970f89db7802b1f56
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html