aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kernel-doc.py
diff options
context:
space:
mode:
authorSeongJae Park <[email protected]>2025-09-08 20:15:12 +0000
committerAndrew Morton <[email protected]>2025-09-13 20:05:36 +0000
commite6a0deb6fa5b0fc134ee2aa127d1cfc9456d8445 (patch)
tree2d1e364b64c829959753cc369370fdc00b924565 /scripts/kernel-doc.py
parentmm: folio_may_be_lru_cached() unless folio_test_large() (diff)
downloadkernel-e6a0deb6fa5b0fc134ee2aa127d1cfc9456d8445.tar.gz
kernel-e6a0deb6fa5b0fc134ee2aa127d1cfc9456d8445.zip
mm/damon/core: introduce damon_call_control->dealloc_on_cancel
Patch series "mm/damon/sysfs: fix refresh_ms control overwriting on multi-kdamonds usages". Automatic esssential DAMON/DAMOS status update feature of DAMON sysfs interface (refresh_ms) is broken [1] for multiple DAMON contexts (kdamonds) use case, since it uses a global single damon_call_control object for all created DAMON contexts. The fields of the object, particularly the list field is over-written for the contexts and it makes unexpected results including user-space hangup and kernel crashes [2]. Fix it by extending damon_call_control for the use case and updating the usage on DAMON sysfs interface to use per-context dynamically allocated damon_call_control object. This patch (of 2): When damon_call_control->repeat is set, damon_call() is executed asynchronously, and is eventually canceled when kdamond finishes. If the damon_call_control object is dynamically allocated, finding the place to deallocate the object is difficult. Introduce a new damon_call_control field, namely dealloc_on_cancel, to ask the kdamond deallocates those dynamically allocated objects when those are canceled. Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Fixes: d809a7c64ba8 ("mm/damon/sysfs: implement refresh_ms file internal work") Signed-off-by: SeongJae Park <[email protected]> Cc: Yunjeong Mun <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/kernel-doc.py')
0 files changed, 0 insertions, 0 deletions