The patch titled Subject: docs/mm: minor corrections has been added to the -mm mm-unstable branch. Its filename is docs-mm-add-vma-locks-documentation-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/docs-mm-add-vma-locks-documentation-fix.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 the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx> Subject: docs/mm: minor corrections Date: Sat, 9 Nov 2024 15:52:55 +0000 Rename a section to avoid confusion with the address_space type, fix a typo, and reword a mangled sentence. Link: https://lkml.kernel.org/r/d3de735a-25ae-4eb2-866c-a9624fe6f795@lucifer.local Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx> Cc: Alice Ryhl <aliceryhl@xxxxxxxxxx> Cc: Bagas Sanjaya <bagasdotme@xxxxxxxxx> Cc: Boqun Feng <boqun.feng@xxxxxxxxx> Cc: Hillf Danton <hdanton@xxxxxxxx> Cc: Jann Horn <jannh@xxxxxxxxxx> Cc: Jonathan Corbet <corbet@xxxxxxx> Cc: Liam R. Howlett <Liam.Howlett@xxxxxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Cc: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx> Cc: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx> Cc: SeongJae Park <sj@xxxxxxxxxx> Cc: Suren Baghdasaryan <surenb@xxxxxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- Documentation/mm/process_addrs.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) --- a/Documentation/mm/process_addrs.rst~docs-mm-add-vma-locks-documentation-fix +++ a/Documentation/mm/process_addrs.rst @@ -68,8 +68,8 @@ described below). Stabilising a VMA also keeps the address space described by it around. -Using address space locks -------------------------- +Lock usage +---------- If you want to **read** VMA metadata fields or just keep the VMA stable, you must do one of the following: @@ -291,7 +291,7 @@ typically refer to the leaf level as the compiler might, in practice, eliminate any code relating to missing ones. -There are free key operations typically performed on page tables: +There are four key operations typically performed on page tables: 1. **Traversing** page tables - Simply reading page tables in order to traverse them. This only requires that the VMA is kept stable, so a lock which @@ -513,11 +513,11 @@ When performing a page table traversal a read must be performed once and only once or not depends on the architecture (for instance x86-64 does not require any special precautions). -It is on the write side, or if a read informs whether a write takes place (on an -installation of a page table entry say, for instance in -:c:func:`!__pud_install`), where special care must always be taken. In these -cases we can never assume that page table locks give us entirely exclusive -access, and must retrieve page table entries once and only once. +If a write is being performed, or if a read informs whether a write takes place +(on an installation of a page table entry say, for instance in +:c:func:`!__pud_install`), special care must always be taken. In these cases we +can never assume that page table locks give us entirely exclusive access, and +must retrieve page table entries once and only once. If we are reading page table entries, then we need only ensure that the compiler does not rearrange our loads. This is achieved via :c:func:`!pXXp_get` _ Patches currently in -mm which might be from lorenzo.stoakes@xxxxxxxxxx are mm-pagewalk-add-the-ability-to-install-ptes.patch mm-add-pte_marker_guard-pte-marker.patch mm-madvise-implement-lightweight-guard-page-mechanism.patch tools-testing-update-tools-uapi-header-for-mman-commonh.patch selftests-mm-add-self-tests-for-guard-page-feature.patch mm-remove-unnecessary-page_table_lock-on-stack-expansion.patch docs-mm-add-vma-locks-documentation.patch docs-mm-add-vma-locks-documentation-fix.patch