]> git.baikalelectronics.ru Git - kernel.git/commit
blk-iolatency: truncate our current time
authorJosef Bacik <jbacik@fb.com>
Mon, 16 Jul 2018 16:12:23 +0000 (12:12 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Jul 2018 16:15:19 +0000 (10:15 -0600)
commitf6ba45c6d3966d998ca004f0d8d594cb1ccf8e5f
tree32bddd6d701c20793b1540e193bdaf285377f0ff
parent7ea3b947c0104ed5e948b3e6d54e8e6c9e524f2d
blk-iolatency: truncate our current time

In our longer tests we noticed that some boxes would degrade to the
point of uselessness.  This is because we truncate the current time when
saving it in our bio, but I was using the raw current time to subtract
from.  So once the box had been up a certain amount of time it would
appear as if our IO's were taking several years to complete.  Fix this
by truncating the current time so it matches the issue time.  Verified
this worked by running with this patch for a week on our test tier.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iolatency.c