summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-10-10 20:34:05 +0300
committerJens Axboe <axboe@kernel.dk>2020-10-10 21:49:20 +0300
commit5bf5e464f1acb1c031b4a290d63760bcb074c027 (patch)
treed94fb70b91af4e0565f40b646549126a073cc98a /fs
parent5e2ed8c4f45093698855b1f45cdf43efbf6dd498 (diff)
downloadlinux-5bf5e464f1acb1c031b4a290d63760bcb074c027.tar.xz
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/io_uring.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 09494ca1b990..272abe03a79e 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);
}