Re: [patch v2 for-3.2-rc3] cpusets: stall when updating mems_allowedfor mempolicy or disjoint nodemask

From: David Rientjes
Date: Fri Nov 18 2011 - 18:53:04 EST


On Thu, 17 Nov 2011, Andrew Morton wrote:

> Nothing in this changelog makes me understand why you think we need this
> change in 3.2. What are the user-visible effects of this change?
>

Kernels where MAX_NUMNODES > BITS_PER_LONG may temporarily see an empty
nodemask in a tsk's mempolicy if its previous nodemask is remapped onto a
new set of allowed cpuset nodes where the two nodemasks, as a result of
the remap, are now disjoint. This fix is a bandaid so that we never
optimize the stores to tsk->mems_allowed because they intersect if tsk
also has an existing mempolicy, so that prevents the possibility of seeing
an empty nodemask during rebind. For 3.3, I'd like to ensure that
remapping any mempolicy's nodemask will never result in an empty nodemask.
--
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/