linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@suse.com>
To: Masayoshi Mizuma <msys.mizuma@gmail.com>
Cc: akpm@linux-foundation.org, mgorman@techsingularity.net,
	pasha.tatashin@oracle.com, linux-mm@kvack.org
Subject: Re: [PATCH] mm: Fix for PG_reserved page flag clearing
Date: Mon, 19 Feb 2018 20:18:34 +0100	[thread overview]
Message-ID: <20180219191834.GS21134@dhcp22.suse.cz> (raw)
In-Reply-To: <cdc33597-191f-1471-ce5e-9efba1bf5fe7@gmail.com>

On Mon 19-02-18 14:11:03, Masayoshi Mizuma wrote:
> Hello Michal, 
> 
> Mon, 19 Feb 2018 18:19:16 +0100 Michal Hocko wrote:
> > On Mon 19-02-18 12:06:14, Masayoshi Mizuma wrote:
> >> From: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
> >>
> >> struct page is inizialized as zero in __init_single_page().
> >> If the page is offlined page, PG_reserved flag is set in early boot
> >> time before __init_single_page(), so we should not clear the flag.
> >>
> >> The real problem is that we can not online the offlined page
> >> through following sysfs operation because offlined page is
> >> expected PG_reserved flag is set. 
> >> It is not needed the initialization, so remove it simply.
> >>
> >>   Code:
> >>
> >>   static int online_pages_range(unsigned long start_pfn, 
> >>   ...
> >>           if (PageReserved(pfn_to_page(start_pfn))) <= HERE!!
> >>                   for (i = 0; i < nr_pages; i++) {
> >>                           page = pfn_to_page(start_pfn + i);
> >>                           (*online_page_callback)(page);
> >>                           onlined_pages++;
> >>   sysfs operation:
> >>
> >>   # echo online > /sys/devices/system/node/node2/memory12288/online
> >>   # cat /sys/devices/system/node/node2/memory12288/online 
> >>   1
> >>   # cat /sys/devices/system/node/node2/meminfo 
> >>   Node 2 MemTotal:              0 kB
> > 
> > Nack. The patch is simply wrong. We do need to zero page for the boot
> > pages. I believe the fix you are looking for is 9bb5a391f9a5 ("mm,
> > memory_hotplug: fix memmap initialization"). Or do you still see a
> > problem with this patch applied?
> 
> I have confirmed the problem is fixed by your patch 9bb5a391f9a5.
> (I had tested it in 4.15.2, so I did not notice your patch, sorry)

I have posted the backport for the 4.15 stable tree just an hour ago so
it should appear in the next stable release.

Thanks for double checking.
-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2018-02-19 19:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-19 17:06 Masayoshi Mizuma
2018-02-19 17:19 ` Michal Hocko
2018-02-19 19:11   ` Masayoshi Mizuma
2018-02-19 19:18     ` Michal Hocko [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=20180219191834.GS21134@dhcp22.suse.cz \
    --to=mhocko@suse.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-mm@kvack.org \
    --cc=mgorman@techsingularity.net \
    --cc=msys.mizuma@gmail.com \
    --cc=pasha.tatashin@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox