Re: [PATCH] cgroup/cpuset: Use WRITE_ONCE() for shared prs_err updates

From: Tejun Heo

Date: Mon Aug 10 2026 - 15:36:56 EST


On Mon, Aug 10, 2026 at 05:55:59PM +0800, Guopeng Zhang wrote:
> From: Guopeng Zhang <zhangguopeng@xxxxxxxxxx>
>
> cpuset_partition_show() reads cs->prs_err without cpuset_mutex using
> READ_ONCE(). The field is documented as not lock protected, but several
> updates to live cpusets still use plain stores.
>
> Convert the remaining prs_err stores on live cpusets to WRITE_ONCE().

Applied to cgroup/for-7.3.

Thanks.

--
tejun