t/io_uring: fix size confusion in allocate_mem()
authorJens Axboe <axboe@kernel.dk>
Tue, 5 Nov 2024 14:57:41 +0000 (07:57 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 5 Nov 2024 14:57:41 +0000 (07:57 -0700)
commitf2415d711a11fec6d5e4081a7bdc060b98c76043
tree203fe11f4585ec1e820db675d8d1492ad1eac6c3
parent433f390f3bb3acac68b97bbee139515653721ba7
t/io_uring: fix size confusion in allocate_mem()

It should always be using the size passed in as to what amount of memory
should be allocated, not the individual IO size. This didn't matter
previously, as each buffer was allocated independently, but it matters
now where a single region will cover all IO buffers.

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