[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260130093729.2045858-1-zhongqiu.han@oss.qualcomm.com>
Date: Fri, 30 Jan 2026 17:37:27 +0800
From: Zhongqiu Han <zhongqiu.han@....qualcomm.com>
To: catalin.marinas@....com, akpm@...ux-foundation.org
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
zhongqiu.han@....qualcomm.com
Subject: [PATCH 0/2] mm/kmemleak: Improve scan_should_stop() implementation
This series improves the scan_should_stop() function by addressing code
quality issues and enhancing kernel thread detection robustness.
Patch 1 removes unreachable code that serves no purpose.
Patch 2 replaces current->mm with PF_KTHREAD for more reliable and
explicit kernel thread detection.
Zhongqiu Han (2):
mm/kmemleak: Remove unreachable return statement in scan_should_stop()
mm/kmemleak: Use PF_KTHREAD flag to detect kernel threads
mm/kmemleak.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
base-commit: 33a647c659ffa5bdb94abc345c8c86768ff96215
--
2.43.0
Powered by blists - more mailing lists