diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-10-13 09:43:57 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-17 09:25:42 -0600 |
commit | b1b74cfc1967bd0747ff85f650f598e84eeb3d1c (patch) | |
tree | 3d94761c0f95d6dd01cdab23afd9dbd793859d42 /fs/io_uring.c | |
parent | 368c5481ae7c6a9719c40984faea35480d9f4872 (diff) | |
download | linux-b1b74cfc1967bd0747ff85f650f598e84eeb3d1c.tar.gz linux-b1b74cfc1967bd0747ff85f650f598e84eeb3d1c.tar.bz2 linux-b1b74cfc1967bd0747ff85f650f598e84eeb3d1c.zip |
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: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index f0f4b5b5c2a0..ca9be31b76b3 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -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); |