From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756630AbXJ2Uf6 (ORCPT ); Mon, 29 Oct 2007 16:35:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752350AbXJ2Ufu (ORCPT ); Mon, 29 Oct 2007 16:35:50 -0400 Received: from netops-testserver-4-out.sgi.com ([192.48.171.29]:55186 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753109AbXJ2Uft (ORCPT ); Mon, 29 Oct 2007 16:35:49 -0400 Date: Mon, 29 Oct 2007 13:35:48 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Lee Schermerhorn cc: David Rientjes , Paul Jackson , akpm@linux-foundation.org, ak@suse.de, linux-kernel@vger.kernel.org, Mel Gorman Subject: Re: [patch 2/2] cpusets: add interleave_over_allowed option In-Reply-To: <1193670056.5035.27.camel@localhost> Message-ID: References: <20071025185506.8c373aa8.pj@sgi.com> <1193412644.5032.13.camel@localhost> <20071026120037.7b95a136.pj@sgi.com> <1193433239.5032.95.camel@localhost> <1193433992.5032.102.camel@localhost> <1193670056.5035.27.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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?