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: Update comments replacing breather with aborting mechanism

Commit 5ebec443fb96a ("sched_ext: Exit dispatch and move operations
immediately when aborting") replaced the breather mechanism with the
scx_aborting flag.

Update comments removing references to the breather mechanism to avoid
confusion.

Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Andrea Righi and committed by
Tejun Heo
67932f69 95d1df61

+4 -4
+4 -4
kernel/sched/ext.c
··· 3732 3732 * live-lock the system by making many CPUs target the same DSQ to the point 3733 3733 * where soft-lockup detection triggers. This function is called from 3734 3734 * soft-lockup watchdog when the triggering point is close and tries to unjam 3735 - * the system by enabling the breather and aborting the BPF scheduler. 3735 + * the system and aborting the BPF scheduler. 3736 3736 */ 3737 3737 void scx_softlockup(u32 dur_s) 3738 3738 { ··· 4315 4315 return false; 4316 4316 4317 4317 /* 4318 - * Some CPUs may be trapped in the dispatch paths. Enable breather 4319 - * immediately; otherwise, we might not even be able to get to 4320 - * scx_bypass(). 4318 + * Some CPUs may be trapped in the dispatch paths. Set the aborting 4319 + * flag to break potential live-lock scenarios, ensuring we can 4320 + * successfully reach scx_bypass(). 4321 4321 */ 4322 4322 WRITE_ONCE(scx_aborting, true); 4323 4323 return true;