mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hang Zhengyang <hang.zhengyang1010@gmail.com>
To: Tejun Heo <tj@kernel.org>, David Vernet <void@manifault.com>,
	Andrea Righi <arighi@nvidia.com>,
	Changwoo Min <changwoo@igalia.com>,
	Ingo Molnar <mingo@redhat.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Juri Lelli <juri.lelli@redhat.com>,
	Vincent Guittot <vincent.guittot@linaro.org>,
	Dietmar Eggemann <dietmar.eggemann@arm.com>,
	Steven Rostedt <rostedt@goodmis.org>,
	Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>,
	Valentin Schneider <vschneid@redhat.com>,
	K Prateek Nayak <kprateek.nayak@amd.com>
Cc: Cheng-Yang Chou <yphbchou0911@gmail.com>,
	Barret Rhoden <brho@google.com>, Josh Don <joshdon@google.com>,
	Hao Luo <haoluo@google.com>,
	sched-ext@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH sched_ext/for-7.4-fixes v2 0/2] sched_ext: Fix two races between fork and scx_post_fork()
Date: Sat,  5 Dec 2026 03:04:25 +0000	[thread overview]
Message-ID: <20261205030427.933980-1-hang.zhengyang1010@gmail.com> (raw)

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


             reply	other threads:[~2026-12-05  3:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05  3:04 Hang Zhengyang [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261205030427.933980-1-hang.zhengyang1010@gmail.com \
    --to=hang.zhengyang1010@gmail.com \
    --cc=arighi@nvidia.com \
    --cc=brho@google.com \
    --cc=bsegall@google.com \
    --cc=changwoo@igalia.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=haoluo@google.com \
    --cc=joshdon@google.com \
    --cc=juri.lelli@redhat.com \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=sched-ext@lists.linux.dev \
    --cc=tj@kernel.org \
    --cc=vincent.guittot@linaro.org \
    --cc=void@manifault.com \
    --cc=vschneid@redhat.com \
    --cc=yphbchou0911@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®