From nobody Fri Oct 3 01:55:07 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8487424DCE9; Tue, 9 Sep 2025 02:22:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757384563; cv=none; b=cnPIyCBq08QvD1d1j9JNl9+Wn3x8t4XEN6hgyAFqR9oC65UPf2rRMQByqlbH9gZ5PDn1XoUAbfNuS/LfD764ub74zzIAYuTP2caondeO5oSuqvHz7+Rr3YJmRcDrvCMompuxy+VadN3YpU9HZjACXON2j6yzJ5rw5BDYvCI7jvg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757384563; c=relaxed/simple; bh=DHqTS3AzUjYGHdLzhzK2+dBwRPHotpFoyVLaW4sFFjU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pLDJtzGwnJfSA6QwfVg6ySNoSQ8CsL1spnwBp94yr6giXJqdsiZsKmXe9iNrjZPGgjUMlh2P8IvNRQ23ZOicrsTwwKyYin0POMZhmxEnoWKTYLoVKSmAu1+hMrE1zAeao3PwjoNzbLOt6D+AWG0a/1QNBiScU6Bu75Oq8ol5IIc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mPzDToC6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mPzDToC6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB854C4CEF1; Tue, 9 Sep 2025 02:22:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757384563; bh=DHqTS3AzUjYGHdLzhzK2+dBwRPHotpFoyVLaW4sFFjU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mPzDToC691DQi0WMja/yox6GhsLGehAPJrLbU4aKav/K0JwbbVH+XmLecKYHmwJ9y ZDyHA//PDOfabF57QyqJQfms2JF7VrNzoyw1Nd2ohejk1fHE0ixbGm9APgWU1nJhnP aYp9nnDwa4yl15YxOJcdsGCXffR3ZJq7Byj/BvNMTXX8FkPF2GClY6UQaqomc+aR3H sr18Eb26hBMxjlml6lfk8jjHHfFK8L+S7yT7n98qnN93dBKVgZ3gnDO8OEA1Gw2t6+ jKI53vL7ntWYlxipnauHTDBULve+sjnmbtr2kyUfkqwvj0Enjm2FXZ6Ce6Jy9rwEUG 28rHW4+F5VQBQ== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , "# 6 . 17-rc1" , damon@lists.linux.dev, kernel-team@meta.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 1/3] samples/damon/wsse: avoid starting DAMON before initialization Date: Mon, 8 Sep 2025 19:22:36 -0700 Message-Id: <20250909022238.2989-2-sj@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250909022238.2989-1-sj@kernel.org> References: <20250909022238.2989-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Commit 0ed1165c3727 ("samples/damon/wsse: fix boot time enable handling") is somehow incompletely applying the origin patch [1]. It is missing the part that avoids starting DAMON before module initialization. Probably a mistake during a merge has happened. Fix it by applying the missed part again. [1] https://lore.kernel.org/20250706193207.39810-2-sj@kernel.org Fixes: 0ed1165c3727 ("samples/damon/wsse: fix boot time enable handling") Cc: # 6.17-rc1 Signed-off-by: SeongJae Park --- samples/damon/wsse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/damon/wsse.c b/samples/damon/wsse.c index da052023b099..21eaf15f987d 100644 --- a/samples/damon/wsse.c +++ b/samples/damon/wsse.c @@ -118,6 +118,9 @@ static int damon_sample_wsse_enable_store( return 0; =20 if (enabled) { + if (!init_called) + return 0; + err =3D damon_sample_wsse_start(); if (err) enabled =3D false; --=20 2.39.5