Re: [patch 2/2] cpusets: add interleave_over_allowed option

From: Christoph Lameter
Date: Mon Oct 29 2007 - 16:35:59 EST


On Mon, 29 Oct 2007, Lee Schermerhorn wrote:

> Note: I don't [didn't] think I need to ref count the nodemasks
> associated with the mempolicies because they are allocated when the
> mempolicy is and destroyed when the policy is--not shared. Just like
> the custom zonelist for bind policy, and we have no ref count there.
> I.e., they're protected by the mempol's ref. However, now that you
> bring it up, I'm wondering about the effects of policy remapping, and
> whether we have the reference counting or indirect protection [mmap_sem,
> whatever] correct there in current code. I'll have to take a look.

In that case we could just put the nodemask at the end of the mempolicy
structure and then allocate the size needed? That way we would not need to
deref an additional pointer?

-
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/