diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2019-11-21 23:21:02 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-11-25 19:56:11 -0700 |
commit | b18fdf71e01fba29a804d63f8c1e2ed61011170d (patch) | |
tree | 6c21e94fb6a08a4d67b37e77ebcc5cd700fd5f5b /fs | |
parent | 944e58bfeda0e9b97cd611adafc823c78e0bc464 (diff) |
io_uring: simplify io_req_link_next()
"if (nxt)" is always true, as it was checked in the while's condition.
io_wq_current_is_worker() is unnecessary, as non-async callers don't
pass nxt, so io_queue_async_work() will be called for them anyway.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/io_uring.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 95deb45e89cf..f6f5871bd7d2 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -903,16 +903,7 @@ static void io_req_link_next(struct io_kiocb *req, struct io_kiocb **nxtptr) nxt->flags |= REQ_F_LINK; } - /* - * If we're in async work, we can continue processing the chain - * in this context instead of having to queue up new async work. - */ - if (nxt) { - if (io_wq_current_is_worker()) - *nxtptr = nxt; - else - io_queue_async_work(nxt); - } + *nxtptr = nxt; break; } |