iolog: prevent early entry from skewing entire logging run
authorJens Axboe <axboe@fb.com>
Wed, 3 Aug 2016 15:11:56 +0000 (09:11 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 3 Aug 2016 15:11:56 +0000 (09:11 -0600)
commitf5a568cfb7c2738f80399dc155c964bc26cbb4b3
treec341a50b10b106165fad414873befe167e817152
parentdd32be11d1e158ce16a0266816df1a7b86389b32
iolog: prevent early entry from skewing entire logging run

If we go out of ramp time, our wakeup trigger could cause us to enter
too early in add_log_sample(). If that happens, the time diff could be
negative (so huge unsigned). Since we carry that forward, we end up
logging every entry and not just over the average window.

Signed-off-by: Jens Axboe <axboe@fb.com>
stat.c