blkcg: Track DISCARD statistics and output them in cgroup io.stat
authorTejun Heo <tj@kernel.org>
Wed, 18 Jul 2018 11:47:41 +0000 (04:47 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 18 Jul 2018 14:44:23 +0000 (08:44 -0600)
commit636620b66d5d4012c4a9c86206013964d3986c4f
tree89ecba6057c7ca99ee3a500438a6281b7c261faf
parentbdca3c87fb7ad1cc61d231d37eb0d8f90d001e0c
blkcg: Track DISCARD statistics and output them in cgroup io.stat

Add tracking of REQ_OP_DISCARD ios to the per-cgroup io.stat.  Two
fields, dbytes and dios, to respectively count the total bytes and
number of discards are added.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Andy Newell <newella@fb.com>
Cc: Michael Callahan <michaelcallahan@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/admin-guide/cgroup-v2.rst
block/blk-cgroup.c
include/linux/blk-cgroup.h