Omar Sandoval efd4b81abb 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>
2017-03-16 09:46:14 -06:00
..
2016-10-28 08:45:17 -06:00
2017-02-27 18:43:47 -08:00
2017-03-02 13:53:13 -08:00
2017-03-02 13:53:13 -08:00
2017-02-08 13:43:06 -07:00