get_next_offset() number of loops change
authorJens Axboe <jens.axboe@oracle.com>
Thu, 8 Mar 2007 13:02:42 +0000 (14:02 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 8 Mar 2007 13:02:42 +0000 (14:02 +0100)
Commit b5af82930ccfd7dda6a1b11794efb452eb76d8dc inadvertently
changed this, revert.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
io_u.c

diff --git a/io_u.c b/io_u.c
index 9f3bb22..4698b34 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -107,7 +107,7 @@ static int get_next_offset(struct thread_data *td, struct io_u *io_u)
 
        if (td_random(td)) {
                unsigned long long max_blocks = f->file_size / td->min_bs[ddir];
-               int loops = 2;
+               int loops = 5;
 
                do {
                        r = os_random_long(&td->random_state);