blk-stat: fix a few cases of missing batch flushing wb-buf-throttle-v4.7
authorJens Axboe <axboe@fb.com>
Fri, 9 Dec 2016 23:16:30 +0000 (16:16 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 9 Dec 2016 23:17:06 +0000 (16:17 -0700)
commitae1ed1896c8679ae4a30f8202dd8ef275a8ba7d2
tree13a2ab0f5f88a441543d585054f8599695516b7d
parentfa4bbf60af399678e3f5ca4cde0c8501f53adc86
blk-stat: fix a few cases of missing batch flushing

Everytime we need to read ->nr_samples, we should have flushed
the batch first. The non-mq read path also needs to flush the
batch.

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