mm/damon/sysfs: handle clear_schemes_tried_regions from DAMON sysfs context
authorSeongJae Park <sj@kernel.org>
Fri, 3 Jan 2025 17:43:52 +0000 (09:43 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 26 Jan 2025 04:22:25 +0000 (20:22 -0800)
commit0f3e40eb5ec17949ad6053ed057735e1a33079f7
treee4d4a43de40ee9e68a53426792fd81232eb7da3b
parente035320fd38efcfdb77e7e1d1ab5b92449c1c2b5
mm/damon/sysfs: handle clear_schemes_tried_regions from DAMON sysfs context

DAMON sysfs interface handles clear_schemes_tried_regions request from the
DAMON callback context (damon_sysfs_cmd_request_callback()), which is
designed to be used for safe access to the related DAMON context internal
data.  But no DAMON context internal data is accessed for the work.
Directly handle it from DAMON sysfs interface context, namely
damon_sysfs_handle_cmd().

Link: https://lkml.kernel.org/r/20250103174400.54890-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/sysfs-schemes.c
mm/damon/sysfs.c