Re: [PATCH] cgroup: rstat: call cgroup_rstat_updated_list with cgroup_rstat_lock

From: Breno Leitao
Date: Wed Apr 02 2025 - 07:40:26 EST


On Tue, Apr 01, 2025 at 10:09:12AM -0700, Shakeel Butt wrote:
> The commit 093c8812de2d ("cgroup: rstat: Cleanup flushing functions and
> locking") during cleanup accidentally changed the code to call
> cgroup_rstat_updated_list() without cgroup_rstat_lock which is required.
> Fix it.
>
> Fixes: 093c8812de2d ("cgroup: rstat: Cleanup flushing functions and locking")
> Reported-by: Jakub Kicinski <kuba@xxxxxxxxxx>
> Reported-by: Breno Leitao <leitao@xxxxxxxxxx>
> Reported-by: Venkat Rao Bagalkote <venkat88@xxxxxxxxxxxxx>
> Closes: https://lore.kernel.org/all/6564c3d6-9372-4352-9847-1eb3aea07ca4@xxxxxxxxxxxxx/
> Signed-off-by: Shakeel Butt <shakeel.butt@xxxxxxxxx>

Tested-by: Breno Leitao <leitao@xxxxxxxxxx>