Re: [PATCH v2] mm/damon/sysfs-schemes: Remove outdated TODO in target_nid_store()
From: SeongJae Park
Date: Wed Dec 10 2025 - 16:49:49 EST
On Thu, 11 Dec 2025 03:07:08 +0000 Swaraj Gaikwad <swarajgaikwad1925@xxxxxxxxx> wrote:
> The TODO comment in target_nid_store() suggested adding range validation
> for target_nid. As discussed in [1], the current behavior of accepting
> any integer value is intentional. DAMON sysfs aims to remain flexible,
> including supporting users who prepare node IDs before future NUMA hotplug
> events.
>
> Because this behavior matches the broader design philosophy of the DAMON
> sysfs interface, the TODO comment is now misleading. This patch removes the
> comment.
Thank you so much for this patch, Swaraj!
You sent this as a reply to v1. In mm/ and damon/ subsystems, we prefer new
versions of patches to be sent as a new email, rather than a reply to the
previous version. Please consider doing so next time.
>
> No functional changes.
>
> [1] https://lore.kernel.org/lkml/20251210150930.57679-1-sj@xxxxxxxxxx/
This kind of link is useful for tracking the history. Thank you for adding
this.
>
> v2:
> - Removed the logic changes (validation) introduced in v1.
> - Updated commit message to reflect that only the comment is being removed.
This kind of change history should be placed under the '---' line [1] below.
Please consider doing so next time.
>
> Suggested-by: SeongJae Park <sj@xxxxxxxxxx>
> Signed-off-by: Swaraj Gaikwad <swarajgaikwad1925@xxxxxxxxx>
Other than the trivial comments above, change looks good to me.
Reviewed-by: SeongJae Park <sj@xxxxxxxxxx>
If you willing to, please address the comments and send v3. Because the
comments are for only very trivial things, if you don't or can't do that in
days, I will address those and send it as v3 on my own.
[1] https://docs.kernel.org/process/submitting-patches.html#commentary
Thanks,
SJ
[...]