From: Pavel Begunkov Date: Sat, 10 Oct 2020 17:34:05 +0000 (+0100) Subject: io_uring: don't io_prep_async_work() linked reqs X-Git-Tag: baikal/mips/sdk5.9~12522^2~11 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=0566316fb30dd8a90ad29f1e730a5527d99a52cb;p=kernel.git 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 Signed-off-by: Pavel Begunkov Signed-off-by: Jens Axboe --- diff --git a/fs/io_uring.c b/fs/io_uring.c index 09494ca1b9909..272abe03a79e9 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -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); }