From: sashiko-bot@kernel.org
To: "Huang Shijie" <huangsj@hygon.cn>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v2 4/4] docs/mm: update document for split i_mmap tree
Date: Thu, 11 Jun 2026 06:26:15 +0000 [thread overview]
Message-ID: <20260611062616.306B11F00898@smtp.kernel.org> (raw)
In-Reply-To: <20260611061915.2354307-5-huangsj@hygon.cn>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The commit message claims to document the `i_mmap_tree_unlock_write` helper, but it is completely omitted from the documentation text changes.
--
commit d14051a8e507a6d5364fa4f0f61edf41becf1526
Author: Huang Shijie <huangsj@hygon.cn>
docs/mm: update document for split i_mmap tree
This commit updates the documentation to reflect i_mmap locking changes. It
details the split i_mmap tree architecture, new per-tree lock helpers, and
updated lock ordering and page table freeing semantics.
> Add documentation for:
> - CONFIG_SPLIT_I_MMAP split i_mmap tree architecture with per-tree locks
> - New per-tree lock helpers: i_mmap_tree_lock_write/unlock_write
[Severity: Medium]
Does the commit message accurately reflect the changes in the patch?
The message mentions adding documentation for the unlock helper, but
looking at the updated text in the patch, it appears to be missing.
> diff --git a/Documentation/mm/process_addrs.rst b/Documentation/mm/process_addrs.rst
> index 042d64d72421b..bc0d1ac7136d9 100644
> --- a/Documentation/mm/process_addrs.rst
> +++ b/Documentation/mm/process_addrs.rst
[ ... ]
> @@ -60,6 +60,15 @@ Terminology
> :c:func:`!i_mmap_[try]lock_write` for file-backed memory. We refer to these
> locks as the reverse mapping locks, or 'rmap locks' for brevity.
>
> + When :c:macro:`!CONFIG_SPLIT_I_MMAP` is enabled, the file-backed i_mmap tree
> + is split into multiple sibling trees (one per NUMA node or a number based on
> + CPU count), each with its own :c:type:`!struct i_mmap_tree` containing a
> + red/black interval tree and a :c:type:`!struct rw_semaphore`. In this
> + configuration, :c:func:`!i_mmap_lock_read` and :c:func:`!i_mmap_lock_write`
> + acquire all per-tree locks, while VMA insert/remove operations use the
> + per-tree granularity :c:func:`!i_mmap_tree_lock_write` to lock only the
> + relevant sibling tree, significantly reducing lock contention.
[Severity: Medium]
Was the documentation for i_mmap_tree_unlock_write accidentally omitted from
this section? The text explains the locking side but does not mention the
corresponding unlock function.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260611061915.2354307-1-huangsj@hygon.cn?part=4
prev parent reply other threads:[~2026-06-11 6:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-11 6:18 [PATCH v2 0/4] mm: split the file's i_mmap tree for NUMA Huang Shijie
2026-06-11 6:18 ` [PATCH v2 1/4] mm: use mapping_mapped to simplify the code Huang Shijie
2026-06-11 6:18 ` [PATCH v2 2/4] mm: use get_i_mmap_root to access the file's i_mmap Huang Shijie
2026-06-11 6:31 ` sashiko-bot
2026-06-11 6:18 ` [PATCH v2 3/4] mm/fs: split the file's i_mmap tree Huang Shijie
2026-06-11 6:37 ` sashiko-bot
2026-06-11 6:19 ` [PATCH v2 4/4] docs/mm: update document for split " Huang Shijie
2026-06-11 6:26 ` sashiko-bot [this message]
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=20260611062616.306B11F00898@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=huangsj@hygon.cn \
--cc=linux-perf-users@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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