Skip to content

Commit

Permalink
io_uring: don't unnecessarily clear F_LINK_TIMEOUT
Browse files Browse the repository at this point in the history
If a request had REQ_F_LINK_TIMEOUT it would've been cleared in
__io_kill_linked_timeout() by the time of __io_fail_links(), so no need
to care about it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
isilence authored and axboe committed Oct 17, 2020
1 parent 368c548 commit b1b74cf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/io_uring.c
Original file line number Diff line number Diff line change
Expand Up @@ -1852,7 +1852,6 @@ static void __io_fail_links(struct io_kiocb *req)
io_cqring_fill_event(link, -ECANCELED);
link->flags |= REQ_F_COMP_LOCKED;
__io_double_put_req(link);
req->flags &= ~REQ_F_LINK_TIMEOUT;
}

io_commit_cqring(ctx);
Expand Down

0 comments on commit b1b74cf

Please sign in to comment.