Commit 5bf5e464 authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Jens Axboe

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: default avatarRoman Gershman <romger@amazon.com>
Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 5e2ed8c4
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment