blk-stat: fix a few cases of missing batch flushing wb-buf-throttle-v4.6
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:16:30 +0000 (16:16 -0700)
commita4ea3bb8e628c1ca64517ee5dcc20e422b14fd79
treeaaf10f072e39cc536744d8392ea05e43109cebe8
parent980d1cb314b574a54101dcb0db23851a66e0f89f
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