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>
此提交包含在:
Pavel Begunkov
2020-10-10 18:34:05 +01:00
提交者 Jens Axboe
父節點 5e2ed8c4f4
當前提交 5bf5e464f1

查看文件

@@ -5672,9 +5672,6 @@ static int io_req_defer_prep(struct io_kiocb *req,
ret = io_prep_work_files(req);
if (unlikely(ret))
return ret;
io_prep_async_work(req);
return io_req_prep(req, sqe);
}