]> git.karo-electronics.de Git - karo-tx-linux.git/commit
blkcg: don't create "io.stat" on the root cgroup
authorTejun Heo <tj@kernel.org>
Thu, 22 Oct 2015 00:48:37 +0000 (09:48 +0900)
committerTejun Heo <tj@kernel.org>
Thu, 22 Oct 2015 08:58:26 +0000 (17:58 +0900)
commitca0752c5e3e6fad83d286a22d729390bd8004aec
treeaddfdab340f0f73ef5f0c33d3f53479247f2213a
parente4b7037c8613da41fb3f7b029414fe25370f53c0
blkcg: don't create "io.stat" on the root cgroup

The stat files on the root cgroup shows stats for the whole system and
usually don't contain any information which isn't available through
the usual system monitoring mechanisms.  Some controllers skip
collecting these duplicate stats to optimize cases where cgroup isn't
used and later try to emulate the result on demand.

This leads to complexities and subtle differences in the information
shown through different channels.  This is entirely unnecessary and
cgroup v2 is dropping stat files which are duplicate from all
controllers.  This patch removes "io.stat" from the root hierarchy.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Jens Axboe <axboe@kernel.dk>
Cc: Vivek Goyal <vgoyal@redhat.com>
block/blk-cgroup.c