engines/libaio: use maximum buffer size for fixed user bufs
authorJens Axboe <axboe@kernel.dk>
Wed, 28 Nov 2018 02:43:30 +0000 (19:43 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Nov 2018 02:43:30 +0000 (19:43 -0700)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/libaio.c

index e0a073b..d386d14 100644 (file)
@@ -467,7 +467,7 @@ static int fio_libaio_post_init(struct thread_data *td)
                        io_u = ld->io_u_index[i];
                        iocb = &ld->user_iocbs[i];
                        iocb->u.c.buf = io_u->buf;
-                       iocb->u.c.nbytes = io_u->buflen;
+                       iocb->u.c.nbytes = td_max_bs(td);
                }
        }