From: Jens Axboe Date: Thu, 13 Dec 2018 04:10:25 +0000 (-0700) Subject: aioring: remove qd > 1 restriction X-Git-Tag: fio-3.13~78 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3b6171463bffa7228bd31f9d122399d6726c8091;p=fio.git aioring: remove qd > 1 restriction Just add the extra ring entry we need in ->init(). Signed-off-by: Jens Axboe --- diff --git a/engines/aioring.c b/engines/aioring.c index e434387c..1598cc12 100644 --- a/engines/aioring.c +++ b/engines/aioring.c @@ -483,10 +483,8 @@ static int fio_aioring_init(struct thread_data *td) { struct aioring_data *ld; - if (td->o.iodepth <= 1) { - printf("aio-ring: needs a minimum QD of 2\n"); - return 1; - } + /* ring needs an extra entry, add one to achieve QD set */ + td->o.iodepth++; ld = calloc(1, sizeof(*ld));