lkml.org 
[lkml]   [2013]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm, sched, numa: Create a per-task MPOL_INTERLEAVE policy
On Mon, Aug 26, 2013 at 06:10:27PM +0200, Peter Zijlstra wrote:
> + if (pol == new) {
> + /*
> + * XXX 'borrowed' from do_set_mempolicy()

This should probably also say something like:

/*
* This is safe without holding mm->mmap_sem for show_numa_map()
* because this is only used for a NULL->pol transition, not
* pol1->pol2 transitions.
*/

> + */
> + pol->v.nodes = nodes;
> + p->mempolicy = pol;
> + p->flags |= PF_MEMPOLICY;
> + p->il_next = first_node(nodes);
> + new = NULL;
> + } else {


\
 
 \ /
  Last update: 2013-08-26 18:41    [W:0.075 / U:1.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site