mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
io_uring: Fix getting file for timeout
For timeout requests io_uring tries to grab a file with specified fd, which is usually stdin/fd=0. Update io_op_needs_file() Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
e3a5d8e386
commit
5683e5406e
@ -2298,6 +2298,7 @@ static bool io_op_needs_file(const struct io_uring_sqe *sqe)
|
||||
switch (op) {
|
||||
case IORING_OP_NOP:
|
||||
case IORING_OP_POLL_REMOVE:
|
||||
case IORING_OP_TIMEOUT:
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user