blk-cgroup: introduce a new struct blkg_rwstat_sample
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Jun 2019 10:26:21 +0000 (12:26 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jun 2019 16:32:34 +0000 (10:32 -0600)
commit7af6fd9112ba310a889c60d0606b4b74049cfe14
tree82110ea85453bdc5860bdba93d791f8f367070e7
parent5d0b6e48cbef3219c0ed75e0e746c4ed259303c2
blk-cgroup: introduce a new struct blkg_rwstat_sample

When sampling the blkcg counts we don't need atomics or per-cpu
variables.  Introduce a new structure just containing plain u64
counters.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-cgroup.c
block/blk-cgroup.c
include/linux/blk-cgroup.h