]> asedeno.scripts.mit.edu Git - linux.git/commit
cgroup: properly init u64_stats
authorLucas Stach <l.stach@pengutronix.de>
Tue, 28 Nov 2017 12:59:25 +0000 (13:59 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 28 Nov 2017 15:16:08 +0000 (07:16 -0800)
commit52cf373c37a684f8fc279d541307fad39d206376
tree27b35f9e9d446388dd018f583f8bf080774875f3
parentddf7005f32212f28669032651e09bd8d2245c35d
cgroup: properly init u64_stats

Lockdep complains that the stats update is trying to register a non-static
key. This is because u64_stats are using a seqlock on 32bit arches, which
needs to be initialized before usage.

Fixes: 041cd640b2f3 (cgroup: Implement cgroup2 basic CPU usage accounting)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/stat.c