[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0710291335100.1566@schroedinger.engr.sgi.com>
Date: Mon, 29 Oct 2007 13:35:48 -0700 (PDT)
From: Christoph Lameter <clameter@....com>
To: Lee Schermerhorn <Lee.Schermerhorn@...com>
cc: David Rientjes <rientjes@...gle.com>, Paul Jackson <pj@....com>,
akpm@...ux-foundation.org, ak@...e.de,
linux-kernel@...r.kernel.org, Mel Gorman <mel@....ul.ie>
Subject: Re: [patch 2/2] cpusets: add interleave_over_allowed option
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists