commit | a64ea63f648e77d583b5287634f44bea7da79b4b | [log] [tgz] |
---|---|---|
author | Alex Pyrgiotis <apyrgio@grnet.gr> | Sun Mar 10 10:58:05 2013 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Sun Mar 10 10:58:05 2013 +0100 |
tree | 507607fa1558f96a629cb2463216583f1d8f82a3 | |
parent | b136e932040242ff2245e5cfc97df82a7fd03ceb [diff] |
lfsr: Fix spin related bug On the previous patch on cycle detection, we would incremet spin value when: num_vals % cycle_length == 0 which would evaluate always to true for the first iteration since we start with num_vals = 0. Only one corner-case is affected by this bug and this patch should fix it. Signed-off-by: Alex Pyrgiotis <apyrgio@grnet.gr> Signed-off-by: Jens Axboe <axboe@kernel.dk>