2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/samples/damon
Honggyu Kim ddba1b6cf4 samples/damon: fix damon sample mtier for start failure
The damon_sample_mtier_start() can fail so we must reset the "enable"
parameter to "false" again for proper rollback.

In such cases, setting Y to "enable" then N triggers the similar crash
with mtier because damon sample start failed but the "enable" stays as Y.

Link: https://lkml.kernel.org/r/20250702000205.1921-4-honggyu.kim@sk.com
Fixes: 82a08bde3c ("samples/damon: implement a DAMON module for memory tiering")
Signed-off-by: Honggyu Kim <honggyu.kim@sk.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-07-09 21:07:55 -07:00
..
Kconfig samples/damon: implement a DAMON module for memory tiering 2025-05-12 23:50:30 -07:00
Makefile samples/damon: implement a DAMON module for memory tiering 2025-05-12 23:50:30 -07:00
mtier.c samples/damon: fix damon sample mtier for start failure 2025-07-09 21:07:55 -07:00
prcl.c samples/damon: fix damon sample prcl for start failure 2025-07-09 21:07:54 -07:00
wsse.c samples/damon: fix damon sample wsse for start failure 2025-07-09 21:07:55 -07:00