Re: [PATCH] cgroup: rstat: Mark benign data race to silence KCSAN

From: Tejun Heo
Date: Mon Nov 15 2021 - 19:12:27 EST


On Wed, Nov 03, 2021 at 05:58:45PM +0100, Michal Koutný wrote:
> 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@xxxxxxxxx>
> Link: https://lore.kernel.org/r/CACkBjsbPVdkub=e-E-p1WBOLxS515ith-53SFdmFHWV_QMo40w@xxxxxxxxxxxxxx
> Suggested-by: Hao Sun <sunhao.th@xxxxxxxxx>
>
> Signed-off-by: Michal Koutný <mkoutny@xxxxxxxx>

Applied to cgroup/for-5.17.

Thanks.

--
tejun