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

From: Shakeel Butt
Date: Wed Nov 03 2021 - 13:39:22 EST


On Wed, Nov 3, 2021 at 9:59 AM Michal Koutný <mkoutny@xxxxxxxx> 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>

Reviewed-by: Shakeel Butt <shakeelb@xxxxxxxxxx>