Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched_ext: Mark racy bitfields to prevent adding fields that can't tolerate races

The warned bitfields in struct scx_sched are updated racily from concurrent
CPUs causing RMW races, which is fine for these boolean warning flags. Add a
comment marking this area to prevent future fields that can't tolerate racy
updates from being added here.

Signed-off-by: Tejun Heo <tj@kernel.org>

Tejun Heo 5a629ecb d723f36e

+4
+4
kernel/sched/ext_internal.h
··· 895 895 struct scx_dispatch_q **global_dsqs; 896 896 struct scx_sched_pcpu __percpu *pcpu; 897 897 898 + /* 899 + * Updates to the following warned bitfields can race causing RMW issues 900 + * but it doesn't really matter. 901 + */ 898 902 bool warned_zero_slice:1; 899 903 bool warned_deprecated_rq:1; 900 904