summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorSJ Park <sj@kernel.org>2026-07-06 07:06:17 -0700
committerAndrew Morton <akpm@linux-foundation.org>2026-08-04 19:18:30 -0700
commit5c5df7aa649a5f9e0cc96f8aabd3aae66fce667e (patch)
tree3a45ec6715df5b87fdc0a24b3b497cd8b8ce021c /samples
parent5bf9c1f3a97e57e79b72be58394bc2cd3635f0ae (diff)
downloadlinux-stable-5c5df7aa649a5f9e0cc96f8aabd3aae66fce667e.tar.gz
linux-stable-5c5df7aa649a5f9e0cc96f8aabd3aae66fce667e.zip
samples/damon/mtier: do not stop first context for damon_start() failure
damon_start() was able to fail while keeping the first context running. mtier hence stops the first context in the case. damon_start() is refactored to avoid that. The error handling is no longer necessary. Remove it. Link: https://lore.kernel.org/20260706140628.87414-3-sj@kernel.org Signed-off-by: SJ Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'samples')
-rw-r--r--samples/damon/mtier.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/samples/damon/mtier.c b/samples/damon/mtier.c
index e567f4edd80e..90881e8bd441 100644
--- a/samples/damon/mtier.c
+++ b/samples/damon/mtier.c
@@ -193,8 +193,6 @@ static int damon_sample_mtier_start(void)
if (!err)
return 0;
- if (damon_is_running(ctxs[0]))
- damon_stop(ctxs, 1);
damon_destroy_ctx(ctxs[0]);
damon_destroy_ctx(ctxs[1]);
return err;