]> git.karo-electronics.de Git - linux-beck.git/commit
blk-stat: fix a few cases of missing batch flushing
authorJens Axboe <axboe@fb.com>
Fri, 9 Dec 2016 20:08:35 +0000 (13:08 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 9 Dec 2016 20:08:35 +0000 (13:08 -0700)
commit7cd54aa8438947602cf68eda1db327822b9b8e6b
tree42c0d2935f29a7644425146bd2ea08f436d70e8e
parentc8e52ba5e2d6df5acaaeedda20d74f4ec3adcc82
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