From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796183269; b=l84adGonrooMtD7GIGM0xgPFx1wf37By604gHSc63yuaAZGp1My8IabGuJSyxrk+bJGX wTk3LSsMQHPmWZEPNmKmYqp9j477yqk9x7/wAvYd5Bq/aPg56aUnGneYnC9DiHqImdyn8 s1F1y1Wil92XcxZUL88esll9uQCvI00dWlBAxDn1pACaQF5lgCXgrxw7Hu1Kp1ltCEWMl I+/Z24agi4tWTp9AjpmEVmIxOV05DdplahGSGPQGCwOk8QDJf1ZAXxsXfhn/fod9uk0uB BYJcLZgjvhCmuX7CzHJfaXqIKwqD/1daFER7C+HKsERJH4he2qPDJ8STZRf/DcGV/rQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796183269; h=Received:DKIM-Signature:Date:To:From:In-Reply-To:References:Subject: Message-Id; bh=OWNv5Ss5DywLaxoTJxuIbhzT9n3m8nrMgmpwLS/70vE=; b=J/1xJKVquFgrJp0/0THddl4wCdkztGZFDlRfb001SCzhhhG0XdIy5ZeDqkT2f9zoNLc0 rhJ+4Xma747eioxwqYmVtYK2o5tFfivhIOct27sGKEVwZCChj23kxURCo4Dr/EgFotYAX hesC6tEKkYQlKmQCS0EHXpIG+Sk0G6O8U4qbQZJysd0Oq40tM+0gHdGcBoY4FZ4YxAVVV JKR9hsWKcuq8KHp/ztd4lE7u1Z0oIi83C3ddUqHLjQBt66t/LUOgSF5SjWw8ZDLgGSzbm 1iAiG7pfrRbzZuWfEzLE6GUS81cHGmLZEtiyUc55daOBsPxD/LbFF+xTM3B7E61hWwA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=1hJ9jYXj; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 796C6606A31A; Wed, 2 Dec 2026 03:47:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=1hJ9jYXj Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42DC61F00893; Wed, 2 Dec 2026 03:47:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796183269; bh=OWNv5Ss5DywLaxoTJxuIbhzT9n3m8nrMgmpwLS/70vE=; h=Date:To:From:In-Reply-To:References:Subject; b=1hJ9jYXjReozK81TeMEZgT+7k3h8RbpB02WlEVD4ul9Er/7PTxPasmv8hdrXIl5/a 0aAPK8pWG5pE1AWAzNMr3o3MOLeCttObkisEuC7GfyHArN1x24NL3EyhLS5vVwAWue p5O8Nk9bGfbbG++P02fBkpI5xEaxGSmgGScxSUpo= Date: Tue, 01 Dec 2026 19:47:48 -0800 To: mm-commits@vger.kernel.org,stable@vger.kernel.org,sj@kernel.org, devnexen@gmail.com,evanfengff@gmail.com,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20261123150049.81317-4-sj@kernel.org> References: <20261123150049.81317-4-sj@kernel.org> Subject: [merged mm-hotfixes-stable] mm-damon-core-do-not-overwrite-wmarksactivated-in-damos_commit.patch removed from -mm tree Message-Id: <20261202034749.42DC61F00893@smtp.kernel.org> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list The quilt patch titled Subject: mm/damon/core: do not overwrite wmarks.activated in damos_commit() has been removed from the -mm tree. Its filename was mm-damon-core-do-not-overwrite-wmarksactivated-in-damos_commit.patch This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: Yifan Feng Subject: mm/damon/core: do not overwrite wmarks.activated in damos_commit() Date: Mon, 23 Nov 2026 07:00:48 -0800 damos_commit() copies the whole wmarks struct from the source scheme, including the private 'activated' field. The source scheme is a new one, so the field is always true there. As a result, a commit turns on a scheme that the watermarks turned off. If the metric is between mid and high at that time, the scheme keeps running, though it should stay off until the metric goes below mid. DAMON_RECLAIM and DAMON_LRU_SORT use the same path for commit_inputs. Save 'activated' before the copy and restore it after. Do not restore it for DAMOS_WMARK_NONE, because nothing sets it again in that case and the scheme would stay off. Link: https://patch.msgid.link/20261123150049.81317-4-sj@kernel.org Fixes: 9cb3d0b9dfce ("mm/damon/core: implement DAMON context commit function") Signed-off-by: Yifan Feng Signed-off-by: SJ Park Signed-off-by: Andrew Morton Reviewed-by: SJ Park Cc: David Carlier Cc: # 6.11.x mm/damon/core.c | 3 +++ 1 file changed, 3 insertions(+) --- a/mm/damon/core.c~mm-damon-core-do-not-overwrite-wmarksactivated-in-damos_commit +++ a/mm/damon/core.c @@ -1567,6 +1567,7 @@ static struct damos *damon_nth_scheme(in static int damos_commit(struct damos *dst, struct damos *src) { + bool activated = dst->wmarks.activated; int err; dst->pattern = src->pattern; @@ -1578,6 +1579,8 @@ static int damos_commit(struct damos *ds return err; dst->wmarks = src->wmarks; + if (dst->wmarks.metric != DAMOS_WMARK_NONE) + dst->wmarks.activated = activated; dst->target_nid = src->target_nid; err = damos_commit_dests(&dst->migrate_dests, &src->migrate_dests); _ Patches currently in -mm which might be from evanfengff@gmail.com are tools-mm-page_owner_sort-fix-slab-allocator-labelling.patch