Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1697042

Re: [PATCH] mm: take memory hotplug lock within numa_zonelist_order_handler()

From Michal Hocko <mhocko@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] mm: take memory hotplug lock within numa_zonelist_order_handler()
Date 2017-07-26 14:20 +0200
Message-ID <u7tsf-aO-19@gated-at.bofh.it> (permalink)
References <u7sw9-83B-5@gated-at.bofh.it> <u7sPw-89V-7@gated-at.bofh.it> <u7sZc-8do-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed 26-07-17 13:48:12, Heiko Carstens wrote:
> On Wed, Jul 26, 2017 at 01:31:12PM +0200, Michal Hocko wrote:
> > On Wed 26-07-17 13:17:38, Heiko Carstens wrote:
> > [...]
> > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> > > index 6d30e914afb6..fc32aa81f359 100644
> > > --- a/mm/page_alloc.c
> > > +++ b/mm/page_alloc.c
> > > @@ -4891,9 +4891,11 @@ int numa_zonelist_order_handler(struct ctl_table *table, int write,
> > >  				NUMA_ZONELIST_ORDER_LEN);
> > >  			user_zonelist_order = oldval;
> > >  		} else if (oldval != user_zonelist_order) {
> > > +			mem_hotplug_begin();
> > >  			mutex_lock(&zonelists_mutex);
> > >  			build_all_zonelists(NULL, NULL);
> > >  			mutex_unlock(&zonelists_mutex);
> > > +			mem_hotplug_done();
> > >  		}
> > >  	}
> > >  out:
> > 
> > Please note that this code has been removed by
> > http://lkml.kernel.org/r/20170721143915.14161-2-mhocko@kernel.org. It
> > will get to linux-next as soon as Andrew releases a new version mmotm
> > tree.
> 
> We still would need something for 4.13, no?

If this presents a real problem then yes. Has this happened in a real
workload or during some artificial test? I mean the code has been like
that for ages and nobody noticed/reported any problems.

That being said, I do not have anything against your patch. It is
trivial to rebase mine on top of yours. I am just not sure it is worth
the code churn. E.g. do you think this patch is a stable backport
material?
-- 
Michal Hocko
SUSE Labs

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] mm: take memory hotplug lock within numa_zonelist_order_handler() Heiko Carstens <heiko.carstens@de.ibm.com> - 2017-07-26 13:20 +0200
  Re: [PATCH] mm: take memory hotplug lock within  numa_zonelist_order_handler() Michal Hocko <mhocko@kernel.org> - 2017-07-26 13:40 +0200
    Re: [PATCH] mm: take memory hotplug lock within  numa_zonelist_order_handler() Heiko Carstens <heiko.carstens@de.ibm.com> - 2017-07-26 13:50 +0200
      Re: [PATCH] mm: take memory hotplug lock within  numa_zonelist_order_handler() Michal Hocko <mhocko@kernel.org> - 2017-07-26 14:20 +0200
        Re: [PATCH] mm: take memory hotplug lock within  numa_zonelist_order_handler() Andrew Morton <akpm@linux-foundation.org> - 2017-07-27 00:30 +0200
          Re: [PATCH] mm: take memory hotplug lock within  numa_zonelist_order_handler() Michal Hocko <mhocko@kernel.org> - 2017-07-27 09:00 +0200
  Re: [PATCH] mm: take memory hotplug lock within  numa_zonelist_order_handler() Thomas Gleixner <tglx@linutronix.de> - 2017-07-26 15:40 +0200

csiph-web