Skip to content

Commit 5683e54

Browse files
isilenceaxboe
authored andcommitted
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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent e3a5d8e commit 5683e54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/io_uring.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,6 +2298,7 @@ static bool io_op_needs_file(const struct io_uring_sqe *sqe)
22982298
switch (op) {
22992299
case IORING_OP_NOP:
23002300
case IORING_OP_POLL_REMOVE:
2301+
case IORING_OP_TIMEOUT:
23012302
return false;
23022303
default:
23032304
return true;

0 commit comments

Comments
 (0)