aioring: remove qd > 1 restriction
authorJens Axboe <axboe@kernel.dk>
Thu, 13 Dec 2018 04:10:25 +0000 (21:10 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Dec 2018 04:10:25 +0000 (21:10 -0700)
Just add the extra ring entry we need in ->init().

Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/aioring.c

index e434387c6bd43e8a60010fc0015c4d15721b5ca4..1598cc129a6078eee0e77159be28c15bc928ef07 100644 (file)
@@ -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));