From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx191.postini.com [74.125.245.191]) by kanga.kvack.org (Postfix) with SMTP id 76FB96B0031 for ; Wed, 31 Jul 2013 12:06:10 -0400 (EDT) Date: Wed, 31 Jul 2013 18:05:53 +0200 From: Peter Zijlstra Subject: Re: [PATCH] sched, numa: Use {cpu, pid} to create task groups for shared faults Message-ID: <20130731160553.GF3008@twins.programming.kicks-ass.net> References: <1373901620-2021-1-git-send-email-mgorman@suse.de> <20130730113857.GR3008@twins.programming.kicks-ass.net> <20130731150751.GA15144@twins.programming.kicks-ass.net> <51F93105.8020503@hp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51F93105.8020503@hp.com> Sender: owner-linux-mm@kvack.org List-ID: To: Don Morris Cc: Mel Gorman , Srikar Dronamraju , Ingo Molnar , Andrea Arcangeli , Johannes Weiner , Linux-MM , LKML On Wed, Jul 31, 2013 at 11:45:09AM -0400, Don Morris wrote: > > + > > +static void task_numa_free(struct task_struct *p) > > +{ > > + kfree(p->numa_faults); > > + if (p->numa_group) { > > + struct numa_group *grp = p->numa_group; > > See below. > > > + int i; > > + > > + for (i = 0; i < 2*nr_node_ids; i++) > > + atomic_long_sub(p->numa_faults[i], &grp->faults[i]); > > + > > + spin_lock(&p->numa_lock); > > + spin_lock(&group->lock); > > + list_del(&p->numa_entry); > > + spin_unlock(&group->lock); > > + rcu_assign_pointer(p->numa_group, NULL); > > + put_numa_group(grp); > > So is the local variable group or grp here? Got to be one or the > other to compile... Feh, compiling is soooo overrated! :-) Thanks. -- 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: email@kvack.org