]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm/damon/core: commit damos->target_nid
authorBijan Tabatabai <bijantabatab@micron.com>
Wed, 9 Jul 2025 00:47:29 +0000 (19:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:30:51 +0000 (18:30 +0200)
commit2214b5de0a93f51d145ff22a98257868790e7abc
tree695e708b1a0b57b06e32b4f34701e082a27f2050
parentcd54dc1fd7af792c1b1bb3cabd9dc4a37f728d0d
mm/damon/core: commit damos->target_nid

commit 579bd5006fe7f4a7abb32da0160d376476cab67d upstream.

When committing new scheme parameters from the sysfs, the target_nid field
of the damos struct would not be copied.  This would result in the
target_nid field to retain its original value, despite being updated in
the sysfs interface.

This patch fixes this issue by copying target_nid in damos_commit().

Link: https://lkml.kernel.org/r/20250709004729.17252-1-bijan311@gmail.com
Fixes: 83dc7bbaecae ("mm/damon/sysfs: use damon_commit_ctx()")
Signed-off-by: Bijan Tabatabai <bijantabatab@micron.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Ravi Shankar Jonnalagadda <ravis.opensrc@micron.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/damon/core.c