t/io_uring: pick next file if we're over the limti
authorJens Axboe <axboe@kernel.dk>
Tue, 15 Jan 2019 12:57:54 +0000 (05:57 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Jan 2019 12:57:54 +0000 (05:57 -0700)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c

index 7ddeef39e047d8f1660c86bc571f9b967ff0f635..b5f1e094139193bb4cb5c97aa28171c673f9469b 100644 (file)
@@ -172,6 +172,7 @@ static void init_io(struct submitter *s, unsigned index)
                        s->cur_file++;
                        if (s->cur_file == s->nr_files)
                                s->cur_file = 0;
+                       f = &s->files[s->cur_file];
                }
        }
        f->pending_ios++;