cgroup: rstat: Mark benign data race to silence KCSAN
authorMichal Koutný <mkoutny@suse.com>
Wed, 3 Nov 2021 16:58:45 +0000 (17:58 +0100)
committerTejun Heo <tj@kernel.org>
Mon, 15 Nov 2021 21:34:17 +0000 (11:34 -1000)
commiteda09706b240ca9129ac4e1fbb4eb1e2bc67aadc
tree82abe4013fee11665995b757aed6cc0b06a299c3
parent8ab774587903771821b59471cc723bba6d893942
cgroup: rstat: Mark benign data race to silence KCSAN

There is a race between updaters and flushers (flush can possibly miss
the latest update(s)). This is expected as explained in
cgroup_rstat_updated() comment, add also machine readable annotation so
that KCSAN results aren't noisy.

Reported-by: Hao Sun <sunhao.th@gmail.com>
Link: https://lore.kernel.org/r/CACkBjsbPVdkub=e-E-p1WBOLxS515ith-53SFdmFHWV_QMo40w@mail.gmail.com
Suggested-by: Hao Sun <sunhao.th@gmail.com>
Signed-off-by: Michal Koutný <mkoutny@suse.com>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/rstat.c