Commit b1b74cfc authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Jens Axboe

io_uring: don't unnecessarily clear F_LINK_TIMEOUT

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: default avatarPavel Begunkov <asml.silence@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 368c5481
...@@ -1852,7 +1852,6 @@ static void __io_fail_links(struct io_kiocb *req) ...@@ -1852,7 +1852,6 @@ static void __io_fail_links(struct io_kiocb *req)
io_cqring_fill_event(link, -ECANCELED); io_cqring_fill_event(link, -ECANCELED);
link->flags |= REQ_F_COMP_LOCKED; link->flags |= REQ_F_COMP_LOCKED;
__io_double_put_req(link); __io_double_put_req(link);
req->flags &= ~REQ_F_LINK_TIMEOUT;
} }
io_commit_cqring(ctx); io_commit_cqring(ctx);
......
Markdown is supported
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