All of lore.kernel.org
 help / color / mirror / Atom feed
From: Catalin Marinas <catalin.marinas@arm.com>
To: Breno Leitao <leitao@debian.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	oleg@redhat.com, kernel-team@meta.com
Subject: Re: [PATCH] mm/kmemleak: skip the remaining scan phases when interrupted
Date: Sat, 27 Jun 2026 14:41:41 +0100	[thread overview]
Message-ID: <aj_TFZEniVULJKQ4@arm.com> (raw)
In-Reply-To: <20260626-kmemleak_improve-v1-1-d40c7616f64f@debian.org>

On Fri, Jun 26, 2026 at 10:56:23AM -0700, Breno Leitao wrote:
> kmemleak_scan() scans the per-cpu sections, the struct page ranges and
> the task stacks in sequence. Each loop now bails out once scan_block()
> reports the scan was interrupted, but the later phases are still entered
> and only bail on their first scan_block() call.
> 
> Jump straight to the gray list scan once a phase reports an interrupted
> scan, so the remaining scan phases are not entered at all. This does not
> change the scan results, it only avoids the pointless re-entry.
> 
> Suggested-by: Oleg Nesterov <oleg@redhat.com>
> Signed-off-by: Breno Leitao <leitao@debian.org>

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>


      reply	other threads:[~2026-06-27 13:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-26 17:56 [PATCH] mm/kmemleak: skip the remaining scan phases when interrupted Breno Leitao
2026-06-27 13:41 ` Catalin Marinas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aj_TFZEniVULJKQ4@arm.com \
    --to=catalin.marinas@arm.com \
    --cc=akpm@linux-foundation.org \
    --cc=kernel-team@meta.com \
    --cc=leitao@debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=oleg@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.