All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH sched_ext/for-7.4-fixes v2 0/2] sched_ext: Fix two races between fork and scx_post_fork()
@ 2026-12-05  3:04 Hang Zhengyang
  2026-12-05  3:04 ` [PATCH sched_ext/for-7.4-fixes v2 1/2] sched_ext: Don't enable or disable a task being forked on class changes Hang Zhengyang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Hang Zhengyang @ 2026-12-05  3:04 UTC (permalink / raw)
  To: Tejun Heo, David Vernet, Andrea Righi, Changwoo Min, Ingo Molnar,
	Peter Zijlstra, Juri Lelli, Vincent Guittot, Dietmar Eggemann,
	Steven Rostedt, Ben Segall, Mel Gorman, Valentin Schneider,
	K Prateek Nayak
  Cc: Cheng-Yang Chou, Barret Rhoden, Josh Don, Hao Luo, sched-ext,
	linux-kernel

This version addresses Tejun's review of v1. There is no functional
change.

- The comments now explain why. The one in switching_to_scx() is
  rewritten, and the old comment in scx_post_fork() is folded into the
  new one there.
- switched_from_scx() reads the task state once.
- scx_rehome_task() tests the state the same way as patch 1.
- Rebased on for-7.4-fixes 82cd5232be43 and retested as for v1.

v1: https://lore.kernel.org/r/20261204012744.195571-1-hang.zhengyang1010@gmail.com

Hang Zhengyang (2):
  sched_ext: Don't enable or disable a task being forked on class
    changes
  sched_ext: Don't enable a task twice when it migrates during fork

 kernel/sched/ext/ext.c | 48 +++++++++++++++++++++++++++++-------------
 kernel/sched/ext/sub.c | 27 ++++++++++++++++++------
 2 files changed, 53 insertions(+), 22 deletions(-)


base-commit: 82cd5232be43ff25236c47d7c9126b3f0777359d
-- 
2.53.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-05  7:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05  3:04 [PATCH sched_ext/for-7.4-fixes v2 0/2] sched_ext: Fix two races between fork and scx_post_fork() Hang Zhengyang
2026-12-05  3:04 ` [PATCH sched_ext/for-7.4-fixes v2 1/2] sched_ext: Don't enable or disable a task being forked on class changes Hang Zhengyang
2026-12-05  3:04 ` [PATCH sched_ext/for-7.4-fixes v2 2/2] sched_ext: Don't enable a task twice when it migrates during fork Hang Zhengyang
2026-12-05  7:01 ` [PATCH sched_ext/for-7.4-fixes v2 0/2] sched_ext: Fix two races between fork and scx_post_fork() Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.