* [PATCH v2] Docs/mm: fix stale split page table lock references
@ 2026-11-23 3:09 zhaozhengzhuo
2026-11-23 5:38 ` + docs-mm-fix-stale-split-page-table-lock-references.patch added to mm-unstable branch Andrew Morton
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: zhaozhengzhuo @ 2026-11-23 3:09 UTC (permalink / raw)
To: linux-mm, linux-doc
Cc: linux-kernel, zhaozhengzhuo, David Hildenbrand (Arm),
Lorenzo Stoakes (ARM), Andrew Morton, Suren Baghdasaryan,
Liam R. Howlett, Vlastimil Babka, Shakeel Butt, Mike Rapoport,
Michal Hocko, Jonathan Corbet, Shuah Khan, Randy Dunlap, Qi Zheng,
Russell King (Oracle)
The USE_SPLIT_PTE_PTLOCKS and USE_SPLIT_PMD_PTLOCKS macros were turned
into Kconfig options, and CONFIG_SPLIT_PTLOCK_CPUS was replaced, but two
Documentation/mm files still refer to the old names.
Update both references. Point readers to mm/Kconfig for the dependencies
instead of restating information that can become stale.
Fixes: 394290cba966 ("mm: turn USE_SPLIT_PTE_PTLOCKS / USE_SPLIT_PTE_PTLOCKS into Kconfig options")
Suggested-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Signed-off-by: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
---
Changes in v2:
- Point to mm/Kconfig instead of restating SPLIT_PTE_PTLOCKS dependencies,
as suggested by David.
Documentation/mm/process_addrs.rst | 2 +-
Documentation/mm/split_page_table_lock.rst | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/mm/process_addrs.rst b/Documentation/mm/process_addrs.rst
index 04b649818cc1..0b6355e6d1d5 100644
--- a/Documentation/mm/process_addrs.rst
+++ b/Documentation/mm/process_addrs.rst
@@ -659,7 +659,7 @@ acquired in :c:func:`!__p4d_alloc`, :c:func:`!__pud_alloc` and
references the :c:member:`!mm->page_table_lock`.
Allocating a PTE will either use the :c:member:`!mm->page_table_lock` or, if
-:c:macro:`!USE_SPLIT_PMD_PTLOCKS` is defined, a lock embedded in the PMD
+:c:macro:`!CONFIG_SPLIT_PMD_PTLOCKS` is enabled, a lock embedded in the PMD
physical page metadata in the form of a :c:struct:`!struct ptdesc`, acquired by
:c:func:`!pmd_ptdesc` called from :c:func:`!pmd_lock` and ultimately
:c:func:`!__pte_alloc`.
diff --git a/Documentation/mm/split_page_table_lock.rst b/Documentation/mm/split_page_table_lock.rst
index cc3cd46abd1b..52c992b6bcfa 100644
--- a/Documentation/mm/split_page_table_lock.rst
+++ b/Documentation/mm/split_page_table_lock.rst
@@ -37,8 +37,8 @@ There are helpers to lock/unlock a table and other accessor functions:
- pmd_lockptr()
returns pointer to PMD table lock;
-Split page table lock for PTE tables is enabled compile-time if
-CONFIG_SPLIT_PTLOCK_CPUS (usually 4) is less or equal to NR_CPUS.
+Split page table lock for PTE tables is enabled at compile time when
+CONFIG_SPLIT_PTE_PTLOCKS is enabled; see mm/Kconfig for its dependencies.
If split lock is disabled, all tables are guarded by mm->page_table_lock.
Split page table lock for PMD tables is enabled, if it's enabled for PTE
--
2.50.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* + docs-mm-fix-stale-split-page-table-lock-references.patch added to mm-unstable branch
2026-11-23 3:09 [PATCH v2] Docs/mm: fix stale split page table lock references zhaozhengzhuo
@ 2026-11-23 5:38 ` Andrew Morton
2026-11-24 8:22 ` David Hildenbrand
2026-11-24 8:19 ` [PATCH v2] Docs/mm: fix stale split page table lock references David Hildenbrand (Arm)
` (3 subsequent siblings)
4 siblings, 1 reply; 7+ messages in thread
From: Andrew Morton @ 2026-11-23 5:38 UTC (permalink / raw)
To: mm-commits, vbabka, surenb, skhan, shakeel.butt, rppt, rmk+kernel,
rdunlap, qi.zheng, mhocko, ljs, liam, david, corbet,
zhaozhengzhuo, akpm
The patch titled
Subject: Docs/mm: fix stale split page table lock references
has been added to the -mm mm-unstable branch. Its filename is
docs-mm-fix-stale-split-page-table-lock-references.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/docs-mm-fix-stale-split-page-table-lock-references.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
Subject: Docs/mm: fix stale split page table lock references
Date: Mon, 23 Nov 2026 11:09:03 +0800
The USE_SPLIT_PTE_PTLOCKS and USE_SPLIT_PMD_PTLOCKS macros were turned
into Kconfig options, and CONFIG_SPLIT_PTLOCK_CPUS was replaced, but two
Documentation/mm files still refer to the old names.
Update both references. Point readers to mm/Kconfig for the dependencies
instead of restating information that can become stale.
Link: https://patch.msgid.link/6E11B4A6A6E0DCF9%2B20261123030904.57369-1-zhaozhengzhuo@uniontech.com
Fixes: 394290cba966 ("mm: turn USE_SPLIT_PTE_PTLOCKS / USE_SPLIT_PTE_PTLOCKS into Kconfig options")
Signed-off-by: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Suggested-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Qi Zheng <qi.zheng@linux.dev>
Cc: Russell King <rmk+kernel@armlinux.org.uk>
Documentation/mm/process_addrs.rst | 2 +-
Documentation/mm/split_page_table_lock.rst | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
--- a/Documentation/mm/process_addrs.rst~docs-mm-fix-stale-split-page-table-lock-references
+++ a/Documentation/mm/process_addrs.rst
@@ -659,7 +659,7 @@ acquired in :c:func:`!__p4d_alloc`, :c:f
references the :c:member:`!mm->page_table_lock`.
Allocating a PTE will either use the :c:member:`!mm->page_table_lock` or, if
-:c:macro:`!USE_SPLIT_PMD_PTLOCKS` is defined, a lock embedded in the PMD
+:c:macro:`!CONFIG_SPLIT_PMD_PTLOCKS` is enabled, a lock embedded in the PMD
physical page metadata in the form of a :c:struct:`!struct ptdesc`, acquired by
:c:func:`!pmd_ptdesc` called from :c:func:`!pmd_lock` and ultimately
:c:func:`!__pte_alloc`.
--- a/Documentation/mm/split_page_table_lock.rst~docs-mm-fix-stale-split-page-table-lock-references
+++ a/Documentation/mm/split_page_table_lock.rst
@@ -37,8 +37,8 @@ There are helpers to lock/unlock a table
- pmd_lockptr()
returns pointer to PMD table lock;
-Split page table lock for PTE tables is enabled compile-time if
-CONFIG_SPLIT_PTLOCK_CPUS (usually 4) is less or equal to NR_CPUS.
+Split page table lock for PTE tables is enabled at compile time when
+CONFIG_SPLIT_PTE_PTLOCKS is enabled; see mm/Kconfig for its dependencies.
If split lock is disabled, all tables are guarded by mm->page_table_lock.
Split page table lock for PMD tables is enabled, if it's enabled for PTE
_
Patches currently in -mm which might be from zhaozhengzhuo@uniontech.com are
docs-mm-fix-stale-split-page-table-lock-references.patch
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] Docs/mm: fix stale split page table lock references
2026-11-23 3:09 [PATCH v2] Docs/mm: fix stale split page table lock references zhaozhengzhuo
2026-11-23 5:38 ` + docs-mm-fix-stale-split-page-table-lock-references.patch added to mm-unstable branch Andrew Morton
@ 2026-11-24 8:19 ` David Hildenbrand (Arm)
2026-11-24 8:23 ` David Hildenbrand
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: David Hildenbrand (Arm) @ 2026-11-24 8:19 UTC (permalink / raw)
To: zhaozhengzhuo, linux-mm, linux-doc
Cc: linux-kernel, Lorenzo Stoakes (ARM), Andrew Morton,
Suren Baghdasaryan, Liam R. Howlett, Vlastimil Babka,
Shakeel Butt, Mike Rapoport, Michal Hocko, Jonathan Corbet,
Shuah Khan, Randy Dunlap, Qi Zheng, Russell King (Oracle)
On 11/23/26 04:09, zhaozhengzhuo wrote:
> The USE_SPLIT_PTE_PTLOCKS and USE_SPLIT_PMD_PTLOCKS macros were turned
> into Kconfig options, and CONFIG_SPLIT_PTLOCK_CPUS was replaced, but two
> Documentation/mm files still refer to the old names.
>
> Update both references. Point readers to mm/Kconfig for the dependencies
> instead of restating information that can become stale.
>
> Fixes: 394290cba966 ("mm: turn USE_SPLIT_PTE_PTLOCKS / USE_SPLIT_PTE_PTLOCKS into Kconfig options")
> Suggested-by: David Hildenbrand (Arm) <david@kernel.org>
> Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
> Signed-off-by: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
> ---
Reviewed-by: David Hildenbrand (Arm) <david@kernel.org>
--
Cheers,
David
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: + docs-mm-fix-stale-split-page-table-lock-references.patch added to mm-unstable branch
2026-11-23 5:38 ` + docs-mm-fix-stale-split-page-table-lock-references.patch added to mm-unstable branch Andrew Morton
@ 2026-11-24 8:22 ` David Hildenbrand
0 siblings, 0 replies; 7+ messages in thread
From: David Hildenbrand @ 2026-11-24 8:22 UTC (permalink / raw)
To: mm-commits, vbabka, surenb, skhan, shakeel.butt, rppt, rmk+kernel,
rdunlap, qi.zheng, mhocko, ljs, liam, david, corbet,
zhaozhengzhuo, Andrew Morton
On Sun, 22 Nov 2026 21:38:58 -0800, Andrew Morton wrote:
> The patch titled
> Subject: Docs/mm: fix stale split page table lock references
> has been added to the -mm mm-unstable branch. Its filename is
> docs-mm-fix-stale-split-page-table-lock-references.patch
>
> This patch will shortly appear at
> https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/docs-mm-fix-stale-split-page-table-lock-references.patch
>
> [...]
Applied, thanks!
tree: mm/core.git
branch: core-7.5.misc
Applied patches will appear soon in mm-next, followed by linux-next.
Please report any outstanding bugs that were missed during review, so we
can either drop the patch series or decide how to fix it up.
It is encouraged to provide Acked-bys, Reviewed-bys, and Tested-bys even
though the patches have already been applied. If possible, patch trailers
will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. Further, this is not a guarantee that the
patches will go upstream. If in doubt, please check the listed branch.
[1/1] + docs-mm-fix-stale-split-page-table-lock-references.patch added to mm-unstable branch
(no commit info)
[1/1] Docs/mm: fix stale split page table lock references
https://git.kernel.org/mm/core/c/51626ff4
--
Cheers,
David
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] Docs/mm: fix stale split page table lock references
2026-11-23 3:09 [PATCH v2] Docs/mm: fix stale split page table lock references zhaozhengzhuo
2026-11-23 5:38 ` + docs-mm-fix-stale-split-page-table-lock-references.patch added to mm-unstable branch Andrew Morton
2026-11-24 8:19 ` [PATCH v2] Docs/mm: fix stale split page table lock references David Hildenbrand (Arm)
@ 2026-11-24 8:23 ` David Hildenbrand
2026-11-24 8:34 ` Qi Zheng
2026-11-24 8:41 ` [merged] docs-mm-fix-stale-split-page-table-lock-references.patch removed from -mm tree Andrew Morton
4 siblings, 0 replies; 7+ messages in thread
From: David Hildenbrand @ 2026-11-24 8:23 UTC (permalink / raw)
To: linux-mm, linux-doc, zhaozhengzhuo
Cc: linux-kernel, David Hildenbrand (Arm), Lorenzo Stoakes (ARM),
Andrew Morton, Suren Baghdasaryan, Liam R. Howlett,
Vlastimil Babka, Shakeel Butt, Mike Rapoport, Michal Hocko,
Jonathan Corbet, Shuah Khan, Randy Dunlap, Qi Zheng,
Russell King (Oracle)
On Mon, 23 Nov 2026 11:09:03 +0800, zhaozhengzhuo wrote:
> The USE_SPLIT_PTE_PTLOCKS and USE_SPLIT_PMD_PTLOCKS macros were turned
> into Kconfig options, and CONFIG_SPLIT_PTLOCK_CPUS was replaced, but two
> Documentation/mm files still refer to the old names.
>
> Update both references. Point readers to mm/Kconfig for the dependencies
> instead of restating information that can become stale.
>
> [...]
Applied, thanks!
tree: mm/core.git
branch: core-7.5.misc
Applied patches will appear soon in mm-next, followed by linux-next.
Please report any outstanding bugs that were missed during review, so we
can either drop the patch series or decide how to fix it up.
It is encouraged to provide Acked-bys, Reviewed-bys, and Tested-bys even
though the patches have already been applied. If possible, patch trailers
will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. Further, this is not a guarantee that the
patches will go upstream. If in doubt, please check the listed branch.
[1/1] Docs/mm: fix stale split page table lock references
https://git.kernel.org/mm/core/c/51626ff4
--
Cheers,
David
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] Docs/mm: fix stale split page table lock references
2026-11-23 3:09 [PATCH v2] Docs/mm: fix stale split page table lock references zhaozhengzhuo
` (2 preceding siblings ...)
2026-11-24 8:23 ` David Hildenbrand
@ 2026-11-24 8:34 ` Qi Zheng
2026-11-24 8:41 ` [merged] docs-mm-fix-stale-split-page-table-lock-references.patch removed from -mm tree Andrew Morton
4 siblings, 0 replies; 7+ messages in thread
From: Qi Zheng @ 2026-11-24 8:34 UTC (permalink / raw)
To: zhaozhengzhuo, linux-mm, linux-doc
Cc: linux-kernel, David Hildenbrand (Arm), Lorenzo Stoakes (ARM),
Andrew Morton, Suren Baghdasaryan, Liam R. Howlett,
Vlastimil Babka, Shakeel Butt, Mike Rapoport, Michal Hocko,
Jonathan Corbet, Shuah Khan, Randy Dunlap, Russell King (Oracle)
On 11/23/26 11:09 AM, zhaozhengzhuo wrote:
> The USE_SPLIT_PTE_PTLOCKS and USE_SPLIT_PMD_PTLOCKS macros were turned
> into Kconfig options, and CONFIG_SPLIT_PTLOCK_CPUS was replaced, but two
> Documentation/mm files still refer to the old names.
>
> Update both references. Point readers to mm/Kconfig for the dependencies
> instead of restating information that can become stale.
>
> Fixes: 394290cba966 ("mm: turn USE_SPLIT_PTE_PTLOCKS / USE_SPLIT_PTE_PTLOCKS into Kconfig options")
> Suggested-by: David Hildenbrand (Arm) <david@kernel.org>
> Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
> Signed-off-by: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
> ---
> Changes in v2:
> - Point to mm/Kconfig instead of restating SPLIT_PTE_PTLOCKS dependencies,
> as suggested by David.
>
> Documentation/mm/process_addrs.rst | 2 +-
> Documentation/mm/split_page_table_lock.rst | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
Reviewed-by: Qi Zheng <qi.zheng@linux.dev>
Thanks,
Qi
^ permalink raw reply [flat|nested] 7+ messages in thread
* [merged] docs-mm-fix-stale-split-page-table-lock-references.patch removed from -mm tree
2026-11-23 3:09 [PATCH v2] Docs/mm: fix stale split page table lock references zhaozhengzhuo
` (3 preceding siblings ...)
2026-11-24 8:34 ` Qi Zheng
@ 2026-11-24 8:41 ` Andrew Morton
4 siblings, 0 replies; 7+ messages in thread
From: Andrew Morton @ 2026-11-24 8:41 UTC (permalink / raw)
To: mm-commits, vbabka, surenb, skhan, shakeel.butt, rppt, rmk+kernel,
rdunlap, qi.zheng, mhocko, ljs, liam, david, corbet,
zhaozhengzhuo, akpm
The quilt patch titled
Subject: Docs/mm: fix stale split page table lock references
has been removed from the -mm tree. Its filename was
docs-mm-fix-stale-split-page-table-lock-references.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
Subject: Docs/mm: fix stale split page table lock references
Date: Mon, 23 Nov 2026 11:09:03 +0800
The USE_SPLIT_PTE_PTLOCKS and USE_SPLIT_PMD_PTLOCKS macros were turned
into Kconfig options, and CONFIG_SPLIT_PTLOCK_CPUS was replaced, but two
Documentation/mm files still refer to the old names.
Update both references. Point readers to mm/Kconfig for the dependencies
instead of restating information that can become stale.
Link: https://patch.msgid.link/6E11B4A6A6E0DCF9%2B20261123030904.57369-1-zhaozhengzhuo@uniontech.com
Fixes: 394290cba966 ("mm: turn USE_SPLIT_PTE_PTLOCKS / USE_SPLIT_PTE_PTLOCKS into Kconfig options")
Signed-off-by: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Suggested-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Qi Zheng <qi.zheng@linux.dev>
Cc: Russell King <rmk+kernel@armlinux.org.uk>
Documentation/mm/process_addrs.rst | 2 +-
Documentation/mm/split_page_table_lock.rst | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
--- a/Documentation/mm/process_addrs.rst~docs-mm-fix-stale-split-page-table-lock-references
+++ a/Documentation/mm/process_addrs.rst
@@ -659,7 +659,7 @@ acquired in :c:func:`!__p4d_alloc`, :c:f
references the :c:member:`!mm->page_table_lock`.
Allocating a PTE will either use the :c:member:`!mm->page_table_lock` or, if
-:c:macro:`!USE_SPLIT_PMD_PTLOCKS` is defined, a lock embedded in the PMD
+:c:macro:`!CONFIG_SPLIT_PMD_PTLOCKS` is enabled, a lock embedded in the PMD
physical page metadata in the form of a :c:struct:`!struct ptdesc`, acquired by
:c:func:`!pmd_ptdesc` called from :c:func:`!pmd_lock` and ultimately
:c:func:`!__pte_alloc`.
--- a/Documentation/mm/split_page_table_lock.rst~docs-mm-fix-stale-split-page-table-lock-references
+++ a/Documentation/mm/split_page_table_lock.rst
@@ -37,8 +37,8 @@ There are helpers to lock/unlock a table
- pmd_lockptr()
returns pointer to PMD table lock;
-Split page table lock for PTE tables is enabled compile-time if
-CONFIG_SPLIT_PTLOCK_CPUS (usually 4) is less or equal to NR_CPUS.
+Split page table lock for PTE tables is enabled at compile time when
+CONFIG_SPLIT_PTE_PTLOCKS is enabled; see mm/Kconfig for its dependencies.
If split lock is disabled, all tables are guarded by mm->page_table_lock.
Split page table lock for PMD tables is enabled, if it's enabled for PTE
_
Patches currently in -mm which might be from zhaozhengzhuo@uniontech.com are
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-11-24 8:41 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 3:09 [PATCH v2] Docs/mm: fix stale split page table lock references zhaozhengzhuo
2026-11-23 5:38 ` + docs-mm-fix-stale-split-page-table-lock-references.patch added to mm-unstable branch Andrew Morton
2026-11-24 8:22 ` David Hildenbrand
2026-11-24 8:19 ` [PATCH v2] Docs/mm: fix stale split page table lock references David Hildenbrand (Arm)
2026-11-24 8:23 ` David Hildenbrand
2026-11-24 8:34 ` Qi Zheng
2026-11-24 8:41 ` [merged] docs-mm-fix-stale-split-page-table-lock-references.patch removed from -mm tree Andrew Morton
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.