Messages in this thread | | | Date | Mon, 26 Aug 2013 18:14:57 +0200 | From | Peter Zijlstra <> | Subject | Re: [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 {
| |