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 7ddeef3..b5f1e09 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++;