t/io_uring: avoid unused `nr_batch` warning
authorJens Axboe <axboe@kernel.dk>
Fri, 11 Feb 2022 13:42:13 +0000 (06:42 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Feb 2022 13:42:13 +0000 (06:42 -0700)
commit71989c1b8d102f88c8a34d61c356cd6f0ba680c9
treee3431f9339a6c19a048c7d7ebf405578eb2c5d00
parentdf597be63e26ef59c1538b3ce2026c83684ff7fb
t/io_uring: avoid unused `nr_batch` warning

If we have libaio support, but not an appropriate CPU clock, then the
build throws a warning on nr_batch being assigned but never used.

Mirror what was done on the io_uring init path and only defined and
set `nr_batch` if we have CPU clock support.

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