Skip to content
Commit 88357580 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: correct O_NONBLOCK check for splice punt



The splice file punt check uses file->f_mode to check for O_NONBLOCK,
but it should be checking file->f_flags. This leads to punting even
for files that have O_NONBLOCK set, which isn't necessary. This equates
to checking for FMODE_PATH, which will never be set on the fd in
question.

Fixes: 7d67af2c ("io_uring: add splice(2) support")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent b1f573bd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment