]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: refactor io_submit_flush_completions()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 17 Jun 2021 17:14:00 +0000 (18:14 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Jun 2021 15:22:02 +0000 (09:22 -0600)
commit9547999dcc51708366ba7b083fae43c807514988
treeef0d270db9529e6edfd4db618d70cabe4c202ef7
parent48b0713614a31e1a9b23ca6f3dca40e280474275
io_uring: refactor io_submit_flush_completions()

struct io_comp_state is always contained in struct io_ring_ctx, don't
pass them into io_submit_flush_completions() separately, it makes the
interface cleaner and simplifies it for the compiler.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/44d6ca57003a82484338e95197024dbd65a1b376.1623949695.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c