sched discussion
Linux 6.12.97
LLM 分析
Linux 6.12.97 stable 发布公告:跨子系统合入的稳定版更新
系列概况
- 标题:Linux 6.12.97
- 作者:Greg Kroah-Hartman
- 版本:6.12.97 stable(无独立 patch 版本号,属于 stable 分支合入)
- 规模:跨大量子系统,包含 Documentation、arch、driver、fs、net 等多类目录
- Message-ID:
2026072452-designing-partition-f98d@gregkh - 完整性:thread 仅 2 封邮件,第 1 封为发布公告,第 2 封为携带部分 diff 的回复;thread 本身不包含任何针对 scheduler 子系统的具体 patch 讨论
补丁目的
本 thread 实际并不是一条 scheduler 主题的讨论,而是 stable 分支维护者 Greg Kroah-Hartman 发布的 Linux 6.12.97 稳定版发布公告。其目的是:
- 通知 6.12 系列的所有用户必须升级到 6.12.97;
- 给出对应的
linux-6.12.ygit 仓库地址,方便用户拉取; - 在邮件正文附带一份diffstat 摘要,列出本版本改动的文件与行数,让订阅者一眼看到大致规模。
旧流程的问题
稳定版分支每次发布都要把上游多个 commit 一次性 backport 进来,长期存在两类使用上的痛点:
- 用户需要自行翻 changelog 才能确认自己关心的子系统是否被影响;
- 一些文档措辞与代码实际行为不一致,例如 cpufreq 中 schedutil 的 multiplier 范围、
rate_limit_us=0的语义等。
新流程
6.12.97 在文档层面统一做了一轮订正,让用户文档与当前内核实现保持一致,避免阅读时产生误解。
Patch 概览
第 2 封回复里展示的 diff 主体集中在 Documentation 与 devicetree binding:
Documentation/admin-guide/pm/cpufreq.rst:将 schedutilrate_multiplier描述从「1 到 100」改为「1 到 100000」;同时改写rate_limit_us为 0 时的语义,由「使用默认 5% 步长」改为「由 governor 完全禁用频率切换」。Documentation/core-api/workqueue.rst:新增WQ_PERCPU标志说明,明确它是WQ_UNBOUND的互补,用于强调 per-CPU 绑定的语义。- 多个 devicetree binding schema 的修订:allwinner A10 video engine、renesas ether、nvidia tegra234 pinmux、mt6359 regulator 等。
关键实现
由于本 thread 是稳定版 release 公告,不是某个具体 patch 系列,关键改动分散在各子系统的合入 commit 中,邮件正文并未逐个 commit 解释。可从 diff 中看到的最直接修改是:
@@ cpufreq.rst: schedutil tunables @@
- Temporary multiplier, between 1 (default) and 100 inclusive, to apply to
+ Temporary multiplier, between 1 (default) and 100000 inclusive, to apply to
@@ cpufreq.rst: rate_limit_us semantics @@
- it to 0 will cause the default frequency step (5 percent) to be used
- and setting it to 100 effectively causes the governor to periodically
+ it to 0 disables frequency changes by the governor entirely and setting
+ it to 100 effectively causes the governor to periodically
@@ workqueue.rst: new WQ_PERCPU doc block @@
+``WQ_PERCPU``
+ Work items queued to a per-cpu wq are bound to a specific CPU.
+ This flag is the right choice when cpu locality is important.
+ This flag is the complement of ``WQ_UNBOUND``.
scheduler 子系统本身在 thread 里没有任何 patch;如果有调度器相关变更,那也是隐藏在 6.12.97 整批 backport 中的其他 commit 中,本 thread 邮件正文未提及。
类比
这条 thread 更像是每月一期的《小区物业维护月报》——内容是大量零碎工程:路面、绿化、电梯、管道,订阅者只需翻自己关心的小节。Greg KH 在这里做的也是集中式合订本:把上游 backport 的几十个 commit 一起打包发布,并附上 diffstat 摘要,让大家一眼看规模。
Highlight:风险与注意点
- 本 thread 不是 scheduler 讨论。即使 channel 标为
sched,本邮件也只是 stable release 公告,没有调度器 patch、也没有调度器 maintainer 参与讨论。 - 第 2 封回复展示的 diff 是文档 + devicetree binding,没有任何代码逻辑改动,不要误读为"调度器 fix"。
- 想看 6.12.97 中是否真有调度器改动,需要直接
git log v6.12.96..v6.12.97 -- kernel/sched/去查,邮件正文里查不到。 Linux 6.12.97这样的 stable 公告邮件虽不深入,但邮件量很大、容易被错归类到「bugfix」,应按discussion处理。
版本变化
无独立 vN→vN+1 演进。6.12.97 属于 stable 分支的一次性合入,不是 patch series。
与其他相关 patch 系列的关联
无。thread 内未引用任何调度器相关 patch,也未交叉讨论其他 RFC。
一句话总结
本 thread 是 Greg KH 发布的 Linux 6.12.97 stable release 公告,邮件附带 diffstat 摘要与一段以 cpufreq/workqueue/devicetree binding 为主的文档 diff,不包含任何 scheduler 子系统讨论,整体归类为发布类讨论而非 patch 讨论。
+-----------+ +-----------------------+ +--------------------------+
| Greg KH | ---> | 6.12.97 release email | ---> | linux-6.12.y stable git |
+-----------+ +-----------------------+ +--------------------------+
|
v
+------------------------------+
| attached diffstat + partial |
| - cpufreq.rst docs update |
| - workqueue.rst WQ_PERCPU |
| - devicetree bindings |
| - many other subsystems |
+------------------------------+
|
v
+------------------------------+
| (no scheduler patch in this |
| thread, despite sched tag) |
+------------------------------+