io_u: fix bug in rounding of generated buffer length
authorJens Axboe <axboe@fb.com>
Fri, 24 Apr 2015 16:41:58 +0000 (10:41 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 24 Apr 2015 16:41:58 +0000 (10:41 -0600)
commit7c306bb1d27de928cba1b58d7888981d44416fd1
tree38930dcd11857f26144b98cb31c9fbcb361a4c92
parenta6eaf6c9101cd3f2895376944e6425a43613dbf6
io_u: fix bug in rounding of generated buffer length

If the maximum blocksize isn't a multiple of the minimum blocksize,
then fio has a bug where it will round up the block size and align
it to a size larger than the IO buffer we have. This causes random
memory corruption and crashes.

Signed-off-by: Jens Axboe <axboe@fb.com>
io_u.c