blk-throtl: stop using blkg->stat_bytes and ->stat_ios
authorTejun Heo <tj@kernel.org>
Thu, 7 Nov 2019 19:18:01 +0000 (11:18 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 7 Nov 2019 19:28:13 +0000 (12:28 -0700)
commit7ca464383aecef5c2e32b987030187ee1e4848fb
tree92e2a69b5c0b464871d2891ad26c4484435078ed
parentfd41e60331b13b8fb35cc5048185a46de98db77c
blk-throtl: stop using blkg->stat_bytes and ->stat_ios

When used on cgroup1, blk-throtl uses the blkg->stat_bytes and
->stat_ios from blk-cgroup core to populate four stat knobs.
blk-cgroup core is moving away from blkg_rwstat to improve scalability
and won't be able to support this usage.

It isn't like the sharing gains all that much.  Let's break them out
to dedicated rwstat counters which are updated when on cgroup1.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-throttle.c