fs/pipe: set FMODE_NOWAIT in create_pipe_files()
authorJens Axboe <axboe@kernel.dk>
Fri, 30 May 2025 11:25:35 +0000 (05:25 -0600)
committerChristian Brauner <brauner@kernel.org>
Tue, 10 Jun 2025 11:16:19 +0000 (13:16 +0200)
commitdd765ba8723958514eab2fc742bef69019a21069
tree00732bae3e8998760fa441755aeb1e651557ea2b
parentcd95e366c9e380ca4fbe91cb38756f06d2ad869f
fs/pipe: set FMODE_NOWAIT in create_pipe_files()

Rather than have the caller set the FMODE_NOWAIT flags for both output
files, move it to create_pipe_files() where other f_mode flags are set
anyway with stream_open(). With that, both __do_pipe_flags() and
io_pipe() can remove the manual setting of the NOWAIT flags.

No intended functional changes, just a code cleanup.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/1f0473f8-69f3-4eb1-aa77-3334c6a71d24@kernel.dk
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/pipe.c
io_uring/openclose.c