summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-09-02 00:38:22 +0100
committerJens Axboe <axboe@kernel.dk>2021-09-03 06:16:14 -0600
commit636378535afb837f165beb7de3907896480cf3b2 (patch)
tree2a5b1afa91b98fd0ce5ca548d9dea321bb25d2e3 /fs
parentfa84693b3c896460831fe0750554121121a23da8 (diff)
downloadlinux-stable-636378535afb837f165beb7de3907896480cf3b2.tar.gz
linux-stable-636378535afb837f165beb7de3907896480cf3b2.tar.bz2
linux-stable-636378535afb837f165beb7de3907896480cf3b2.zip
io_uring: don't disable kiocb_done() CQE batching
Not passing issue_flags from kiocb_done() into __io_complete_rw() means that completion batching for this case is disabled, e.g. for most of buffered reads. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/b2689462835c3ee28a5999ef4f9a581e24be04a2.1630539342.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
-rw-r--r--fs/io_uring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 4ad0d17dc92d..9f3f8a802abd 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -2656,7 +2656,7 @@ static void __io_complete_rw(struct io_kiocb *req, long res, long res2,
{
if (__io_complete_rw_common(req, res))
return;
- __io_req_complete(req, 0, req->result, io_put_rw_kbuf(req));
+ __io_req_complete(req, issue_flags, req->result, io_put_rw_kbuf(req));
}
static void io_complete_rw(struct kiocb *kiocb, long res, long res2)