io_uring: batch io_kiocb allocation
authorJens Axboe <axboe@kernel.dk>
Wed, 9 Jan 2019 16:10:43 +0000 (09:10 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Feb 2019 15:24:23 +0000 (08:24 -0700)
commit2579f913d41a086563bb81762c519f3d62ddee37
tree46195e72b0a1e8ece5ea9ab662c327ac23b23aef
parent9a56a2323dbbd8ed7f380a5af7ae3ff82caa55a6
io_uring: batch io_kiocb allocation

Similarly to how we use the state->ios_left to know how many references
to get to a file, we can use it to allocate the io_kiocb's we need in
bulk.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c