OSDN Git Service

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)
commit6dd0be1e2481b32c39870e187840ade6c2a11a72
treee5fc94a9457044208a243080a5441b6ca380d56c
parent5087275dba02943179720bd95d1d6c7047007550
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