summaryrefslogtreecommitdiff
path: root/lib/lfsr.h
diff options
context:
space:
mode:
authorAlex Pyrgiotis <apyrgio@grnet.gr>2013-03-12 10:28:35 +0200
committerJens Axboe <axboe@kernel.dk>2013-03-12 13:09:14 +0100
commitd0f85362c978904661bd6785cd6a7f3437ff85dd (patch)
tree0df937a547b5076069c878e8df91e0b2726e6461 /lib/lfsr.h
parenta5e0ee11ec34cfc70a78aee4f7a2eeb01d9cf41f (diff)
downloadfio-d0f85362c978904661bd6785cd6a7f3437ff85dd.tar.gz
fio-d0f85362c978904661bd6785cd6a7f3437ff85dd.tar.bz2
lfsr: fix verification and spin bugs
Changes: 1. Verification now works properly and reports for which value it fails 2. Fix a mishandling of spin incrementation which led to multiple calculation of the same values Signed-off-by: Alex Pyrgiotis <apyrgio@grnet.gr> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/lfsr.h')
-rw-r--r--lib/lfsr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lfsr.h b/lib/lfsr.h
index bc16af96..187abf2f 100644
--- a/lib/lfsr.h
+++ b/lib/lfsr.h
@@ -18,6 +18,7 @@ struct fio_lfsr {
uint64_t max_val;
uint64_t num_vals;
uint64_t cycle_length;
+ uint64_t cached_cycle_length;
unsigned int spin;
};