]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1b960f6f9d2a104236168139b1de5de167f845c2
tree89ecba6057c7ca99ee3a500438a6281b7c261faf
parentb46a41e58816fc6f18a221a790422da4aa6ca4dd
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