]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: replace list with array for compl batch
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 10 Feb 2021 00:03:13 +0000 (00:03 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Feb 2021 14:28:43 +0000 (07:28 -0700)
commit9caceabfbb70dfb4a3ec4bb5968f6cd1688712ac
treee5fc94a9457044208a243080a5441b6ca380d56c
parent986f72f8ae1ed75be1755562d1f19679f6b883be
io_uring: replace list with array for compl batch

Reincarnation of an old patch that replaces a list in struct
io_compl_batch with an array. It's needed to avoid hooking requests via
their compl.list, because it won't be always available in the future.

It's also nice to split io_submit_flush_completions() to avoid free
under locks and remove unlock/lock with a long comment describing when
it can be done.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c