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


Groups > linux.kernel > #1421966 > unrolled thread

Re: [PATCH 02/27] mm, vmscan: Move lru_lock to the node

Started byMel Gorman <mgorman@techsingularity.net>
First post2016-06-14 16:50 +0200
Last post2016-06-14 16:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 02/27] mm, vmscan: Move lru_lock to the node Mel Gorman <mgorman@techsingularity.net> - 2016-06-14 16:50 +0200

#1421966 — Re: [PATCH 02/27] mm, vmscan: Move lru_lock to the node

FromMel Gorman <mgorman@techsingularity.net>
Date2016-06-14 16:50 +0200
SubjectRe: [PATCH 02/27] mm, vmscan: Move lru_lock to the node
Message-ID<rJXPc-66e-17@gated-at.bofh.it>
On Fri, Jun 10, 2016 at 06:39:26PM +0200, Vlastimil Babka wrote:
> > @@ -5944,10 +5944,10 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat)
> >  		zone->min_slab_pages = (freesize * sysctl_min_slab_ratio) / 100;
> >  #endif
> >  		zone->name = zone_names[j];
> > +		zone->zone_pgdat = pgdat;
> >  		spin_lock_init(&zone->lock);
> > -		spin_lock_init(&zone->lru_lock);
> > +		spin_lock_init(zone_lru_lock(zone));
> 
> This means the same lock will be inited MAX_NR_ZONES times. Peterz told
> me it's valid but weird. Probably better to do it just once, in case
> lockdep/lock debugging gains some checks for that?
> 

Good point and it's an easy fix.

-- 
Mel Gorman
SUSE Labs

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web