io_uring: batch completion in prior_task_list
authorHao Xu <haoxu@linux.alibaba.com>
Wed, 8 Dec 2021 05:21:25 +0000 (13:21 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Dec 2021 18:34:48 +0000 (11:34 -0700)
commitf28c240e7152462f0750a8939db28d985ecf7c67
treed0d4223168a2530cc3c8f5709415a17da69ce6aa
parenta37fae8aaa62b05c11f059fee8fedf4313975abd
io_uring: batch completion in prior_task_list

In previous patches, we have already gathered some tw with
io_req_task_complete() as callback in prior_task_list, let's complete
them in batch while we cannot grab uring lock. In this way, we batch
the req_complete_post path.

Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
Link: https://lore.kernel.org/r/20211208052125.351587-1-haoxu@linux.alibaba.com
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c