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>
return numa_alloc_onnode(size, s->numa_node);
#endif
- if (posix_memalign(&buf, t_io_uring_page_size, bs)) {
+ if (posix_memalign(&buf, t_io_uring_page_size, size)) {
printf("failed alloc\n");
return NULL;
}