Re: [PATCH] mm, sched, numa: Create a per-task MPOL_INTERLEAVE policy
From: Peter Zijlstra
Date: Mon Aug 26 2013 - 12:15:13 EST
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 {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/