commit | 7d8d00140715a115193bf502fa3b0cfe620f0dd9 | [log] [tgz] |
---|---|---|
author | Omar Sandoval <osandov@fb.com> | Thu Mar 16 09:46:14 2017 -0600 |
committer | Jens Axboe <axboe@fb.com> | Tue Mar 21 10:00:55 2017 -0600 |
tree | d4a2c36663631ca44d278a346f7f9e994c1be5fb | |
parent | 97da3854c526d3a6ee05c849c96e48d21527606c [diff] |
blk-stat: fix blk_stat_sum() if all samples are batched We need to flush the batch _before_ we check the number of samples, otherwise we'll miss all of the batched samples. Fixes: cf43e6b ("block: add scalable completion tracking of requests") Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Jens Axboe <axboe@fb.com>