From: Jens Axboe Date: Thu, 6 Sep 2012 15:07:44 +0000 (-0600) Subject: libaio: use INT_MAX to signal that we don't want the ring buffer X-Git-Tag: fio-2.0.10~41 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=c224ec052b3a5be4fba8da777dd7ccbee2fb34c1;p=fio.git libaio: use INT_MAX to signal that we don't want the ring buffer We can't use 0 since the libaio library _also_ checks the nr_events being passed in. So lets use INT_MAX instead. Signed-off-by: Jens Axboe --- diff --git a/engines/libaio.c b/engines/libaio.c index ad7903cf..bc459da1 100644 --- a/engines/libaio.c +++ b/engines/libaio.c @@ -266,7 +266,7 @@ static int fio_libaio_init(struct thread_data *td) * and we need the right depth. */ if (!o->userspace_reap) - err = io_queue_init(0, &ld->aio_ctx); + err = io_queue_init(INT_MAX, &ld->aio_ctx); if (o->userspace_reap || err == -EINVAL) err = io_queue_init(td->o.iodepth, &ld->aio_ctx); if (err) {