From: Ingo Molnar <mingo@kernel.org>
To: linux-kernel@vger.kernel.org
Cc: linux-tip-commits@vger.kernel.org,
"Peter Zijlstra (Intel)" <peterz@infradead.org>,
x86@kernel.org
Subject: Re: [tip: sched/core] sched: Clarify WF_SYNC wakeup semantics
Date: Fri, 25 Sep 2026 20:35:36 +0200 [thread overview]
Message-ID: <ara--PcvTbdm1zbs@gmail.com> (raw)
In-Reply-To: <179033364193.2819794.10008973300214008226.tip-bot2@tip-bot2>
* tip-bot2 for Shubhang Kaushik (Ampere) <tip-bot2@linutronix.de> wrote:
> The following commit has been merged into the sched/core branch of tip:
>
> Commit-ID: e4c353c3933968fe8efecb269fdbe3baa1d1ddd0
> Gitweb: https://git.kernel.org/tip/e4c353c3933968fe8efecb269fdbe3baa1d1ddd0
> Author: Shubhang Kaushik (Ampere) <sh@gentwo.org>
> AuthorDate: Tue, 22 Sep 2026 14:57:05 -07:00
> Committer: Peter Zijlstra <peterz@infradead.org>
> CommitterDate: Fri, 25 Sep 2026 12:45:59 +02:00
>
> sched: Clarify WF_SYNC wakeup semantics
>
> The synchronous waitqueue wakeup comments currently state that a
> synchronous wakee will not be migrated to another CPU. This is not
> guaranteed by the scheduler wakeup path.
>
> WF_SYNC is an advisory hint that the caller expects the waker to
> schedule away soon. Scheduler classes may use it for placement or
> preemption, but callers must not rely on it to prevent migration,
> preserve CPU locality, or make the wakee run next.
>
> Keep this contract next to the flag definition, remove the stale
> waitqueue wording, and make the locked helper refer to the unlocked
> variant.
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> Link: https://patch.msgid.link/20260922-sched-wf-sync-doc-v3-1-23ebe9e27bef@gentwo.org
JFYI, I've added Shubhang's SOB which is missing from the commit:
Signed-off-by: Shubhang Kaushik (Ampere) <sh@gentwo.org>
Which I suppose got lost in some patch application mishap,
because it's present in the original.
Thanks,
Ingo
next prev parent reply other threads:[~2026-09-25 18:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 21:57 [PATCH v3] " Shubhang Kaushik (Ampere)
2026-09-24 10:05 ` Peter Zijlstra
2026-09-24 15:36 ` Shrikanth Hegde
2026-09-25 10:54 ` [tip: sched/core] " tip-bot2 for Shubhang Kaushik (Ampere)
2026-09-25 17:35 ` Shrikanth Hegde
2026-09-25 18:35 ` Ingo Molnar [this message]
2026-09-25 18:36 ` [tip: sched/core] sched/wait: " tip-bot2 for Shubhang Kaushik (Ampere)
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=ara--PcvTbdm1zbs@gmail.com \
--to=mingo@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=x86@kernel.org \
/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®