From 3831a843c289ab6a42a19752733d0fca4250882a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 26 Nov 2012 19:59:14 +0100 Subject: [PATCH] Ensure that lfsr_init() is always called Signed-off-by: Jens Axboe --- filesetup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filesetup.c b/filesetup.c index e7f5f1f3..b70bd454 100644 --- a/filesetup.c +++ b/filesetup.c @@ -911,7 +911,7 @@ int init_random_map(struct thread_data *td) if (init_rand_distribution(td)) return 0; - if (td->o.norandommap || !td_random(td)) + if (!td_random(td)) return 0; for_each_file(td, f, i) { @@ -920,7 +920,7 @@ int init_random_map(struct thread_data *td) if (td->o.random_generator == FIO_RAND_GEN_LFSR) { if (!lfsr_init(&f->lfsr, blocks)) continue; - } else { + } else if (!td->o.norandommap) { f->io_bitmap = bitmap_new(blocks); if (f->io_bitmap) continue; -- 2.25.1