linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Pingfan Liu <kernelfans@gmail.com>
To: Michal Hocko <mhocko@suse.com>
Cc: Dan Williams <dan.j.williams@intel.com>,
	Linux-MM <linux-mm@kvack.org>,
	 Andrew Morton <akpm@linux-foundation.org>,
	David Hildenbrand <david@redhat.com>,
	 Oscar Salvador <osalvador@suse.de>,
	Kexec Mailing List <kexec@lists.infradead.org>,
	 Kazuhito Hagio <k-hagio@ab.jp.nec.com>
Subject: Re: [PATCH] mm/sparse: reset section's mem_map when fully deactivated
Date: Fri, 17 Jan 2020 17:49:38 +0800	[thread overview]
Message-ID: <CAFgQCTsT0dFEOn75XoJf-KUApy+Mz7wDSoZsdd=GwkbGFPu-Bw@mail.gmail.com> (raw)
In-Reply-To: <20200117074746.GF19428@dhcp22.suse.cz>

On Fri, Jan 17, 2020 at 3:47 PM Michal Hocko <mhocko@suse.com> wrote:
>
> On Thu 16-01-20 23:14:02, Dan Williams wrote:
> > On Thu, Jan 16, 2020 at 10:23 PM Pingfan Liu <kernelfans@gmail.com> wrote:
> > >
> > > On Thu, Jan 16, 2020 at 3:50 PM Michal Hocko <mhocko@suse.com> wrote:
> > > >
> > > > On Thu 16-01-20 11:01:08, Pingfan Liu wrote:
> > > > > When fully deactivated, it is meaningless to keep the value of a section's
> > > > > mem_map. And its mem_map will be reassigned during re-added.
> > > > >
> > > > > Beside this, it breaks the user space tool "makedumpfile", which makes
> > > > > assumption that a hot-removed section having mem_map as NULL.
> > > >
> > > > We used to do that before ba72b4c8cf60 ("mm/sparsemem: support
> > > > sub-section hotplug"). Dan was this an intentional change?
> > > I do not know the purpose of this. But the change just leave section
> > > start pfn in fully deactivated section_mem_map, and not used any more.
> >
> > Not intentional, IIRC at the time I had convinced myself that the
> > value would always be translated by sparse_decode_mem_map(), so I
> > thought it could be hiding NULL de-references.  I don't see any harm
> > in the patch.
>
> Thanks for the confirmation. It would be great to have this in the
> changelog.
Should I post V2 with this commit log?

Thanks,
Pingfan


  reply	other threads:[~2020-01-17  9:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-16  3:01 Pingfan Liu
2020-01-16  3:18 ` Qian Cai
2020-01-16  3:34   ` Pingfan Liu
2020-01-16  7:50 ` Michal Hocko
2020-01-17  6:22   ` Pingfan Liu
2020-01-17  7:14     ` Dan Williams
2020-01-17  7:47       ` Michal Hocko
2020-01-17  9:49         ` Pingfan Liu [this message]
2020-01-17  9:52           ` David Hildenbrand
2020-01-20  2:31             ` Pingfan Liu
2020-01-16  8:06 ` David Hildenbrand
2020-01-16  8:14   ` David Hildenbrand
2020-01-16  8:24     ` Baoquan He
2020-01-16  8:57       ` David Hildenbrand
2020-01-17  6:20       ` Pingfan Liu
2020-01-17  6:18   ` Pingfan Liu

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='CAFgQCTsT0dFEOn75XoJf-KUApy+Mz7wDSoZsdd=GwkbGFPu-Bw@mail.gmail.com' \
    --to=kernelfans@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=dan.j.williams@intel.com \
    --cc=david@redhat.com \
    --cc=k-hagio@ab.jp.nec.com \
    --cc=kexec@lists.infradead.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    --cc=osalvador@suse.de \
    /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