blk-stat: fix a few cases of missing batch flushing wb-buf-throttle-v4.8
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:18:02 +0000 (16:18 -0700)
commit3021463a0e9b247bacdb504a9a5fc705cd8458bb
tree9efaa7a9456e851f10dfaefeed50a9bc3471996d
parent76aa120e8f5c994f0ca1d17952983983d0be2b11
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