t/io_uring: minor optimizations to IO init fast path
authorJens Axboe <axboe@kernel.dk>
Thu, 1 Sep 2022 14:34:32 +0000 (08:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Sep 2022 14:34:32 +0000 (08:34 -0600)
commit6b6f52b9b74219d5d7c93e61d21250bb47ecfe66
tree3555f0823a4e1cef97059a65e6b22678c4de0566
parent2be18f6b266f3fcba89719b354672090f49d53d9
t/io_uring: minor optimizations to IO init fast path

1) Only read SQ ring head at the start of prep, we don't need to read
   it at every iteration.
2) Initialize SQ ring index at init time, rather than in the fast path.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c