Skip to content
Commit 496074f9 authored by Tejun Heo's avatar Tejun Heo Committed by Jens Axboe
Browse files

blk-cgroup: cgroup_rstat_updated() shouldn't be called on cgroup1



Currently, cgroup rstat is supported only on cgroup2 hierarchy and
rstat functions shouldn't be called on cgroup1 cgroups.  While
converting blk-cgroup core statistics to rstat, f7331648
("blk-cgroup: reimplement basic IO stats using cgroup rstat")
accidentally ended up calling cgroup_rstat_updated() on cgroup1
cgroups causing crashes.

Longer term, we probably should add cgroup1 support to rstat but for
now let's mask the call directly.

Fixes: f7331648 ("blk-cgroup: reimplement basic IO stats using cgroup rstat")
Tested-by: default avatarFaiz Abbas <faiz_abbas@ti.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent de678bc6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment