]> git.baikalelectronics.ru Git - kernel.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)
commitc93330c044f1c552c55e8c98087f1d6d6c31d3f5
tree42c0d2935f29a7644425146bd2ea08f436d70e8e
parent2fd083c2fd6c120cae86ff690baef7f6d987fb99
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