LKML Archive on
help / color / mirror / Atom feed
From: Mel Gorman <>
To: Doug Berger <>
Cc: Andrew Morton <>,
	Vlastimil Babka <>,
	"Peter Zijlstra (Intel)" <>,,
Subject: Re: [PATCH] mm/page_alloc: don't corrupt pcppage_migratetype
Date: Thu, 12 Aug 2021 11:56:07 +0100	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On Wed, Aug 11, 2021 at 11:29:17AM -0700, Doug Berger wrote:
> When placing pages on a pcp list, migratetype values over
> MIGRATE_PCPTYPES get added to the MIGRATE_MOVABLE pcp list.
> However, the actual migratetype is preserved in the page and
> should not be changed to MIGRATE_MOVABLE or the page may end
> up on the wrong free_list.
> Fixes: df1acc856923 ("mm/page_alloc: avoid conflating IRQs disabled with zone->lock")
> Signed-off-by: Doug Berger <>

Oops, yes. The impact is that HIGHATOMIC or CMA pages getting bulk freed
from the PCP lists could potentially end up on the wrong buddy list.
There are various consequences but minimally NR_FREE_CMA_PAGES accounting
could get screwed up.

Thanks Doug

Acked-by: Mel Gorman <>

Mel Gorman

      parent reply	other threads:[~2021-08-12 10:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-11 18:29 [PATCH] mm/page_alloc: don't corrupt pcppage_migratetype Doug Berger
2021-08-12  8:17 ` Vlastimil Babka
2021-08-13  0:21   ` Doug Berger
2021-08-19 13:09     ` Vlastimil Babka
2021-08-12 10:56 ` Mel Gorman [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:

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

  git send-email \ \ \ \ \ \ \ \ \

* 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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).