mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 02:19:51 +00:00
io_uring: don't io_prep_async_work() linked reqs
There is no real reason left for preparing io-wq work context for linked requests in advance, remove it as this might become a bottleneck in some cases. Reported-by: Roman Gershman <romger@amazon.com> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
5e2ed8c4f4
commit
5bf5e464f1
1 changed files with 0 additions and 3 deletions
|
@ -5672,9 +5672,6 @@ static int io_req_defer_prep(struct io_kiocb *req,
|
||||||
ret = io_prep_work_files(req);
|
ret = io_prep_work_files(req);
|
||||||
if (unlikely(ret))
|
if (unlikely(ret))
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
io_prep_async_work(req);
|
|
||||||
|
|
||||||
return io_req_prep(req, sqe);
|
return io_req_prep(req, sqe);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue