From: Tejun Heo Subject: Re: [PATCH 06/13] cpuset: cleanup cpuset[_can]_attach() Date: Wed, 2 Jan 2013 10:34:39 -0500 Message-ID: <20130102153439.GA11220@mtj.dyndns.org> References: <1354138460-19286-1-git-send-email-tj@kernel.org> <1354138460-19286-7-git-send-email-tj@kernel.org> <50DACF5B.6050705@huawei.com> <20121226120415.GA18193@mtj.dyndns.org> <87zk0s5h7c.fsf@rustcorp.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=4eSWRUInRJN4Pylup9Ianry1cCZQtvLYJ6VHW1JVk9w=; b=CQ6uROkA3iqX2V8Y3FGeslZjjbj9DAiuPfVAIiguC/WZEhlkusGipcB1JnV/Xiuyaw C3/aS2o8w7d+bdUaJoeNOS68ZKT4jvqFbXTrBZpPpr1UApyCY/kYWwzzrxR0YVnjASEh 7wdoKLAXELnnn9AfkbHZIkahvhbLQlHRHJMteEIfZcMc2R2Ai1i//y/oPTbWjDFcCgaA GUxq5SW994Q11J3aTBUHSSjTR89Mw4lXiYBZG0oClZkO+hl7BqzqWDVE6oSRdO+3oQLq jRGjPtgPHM1Pt50jibP8KCxffWzb1U4eHGYehSioyLUth1YYFtL8w9UYV6B+6SniGf6q 7n+Q== Content-Disposition: inline In-Reply-To: <87zk0s5h7c.fsf-8n+1lVoiYb80n/F98K4Iww@public.gmane.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Rusty Russell Cc: paul-inf54ven1CmVyaH7bEyXVA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, mhocko-AlSwsSmVLrQ@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Hello, Rusty. On Wed, Jan 02, 2013 at 03:12:15PM +1030, Rusty Russell wrote: > > Hmmm? cpumask_t can't be used for stack but other than that I don't > > see how it would be deprecated completely. Rusty, can you please > > chime in? > > The long-never-quite-complete-plan was for struct cpumask to be > undefined when CONFIG_CPUMASK_OFFSTACK=y. That means noone can declare > them, or pass them on the stack, since they'll get a compiler error. > > Now, there are some cases where it really is a reason to use a static > bitmap, and 1/2 a K of wasted space be damned. There's a > deliberately-ugly way of doing that: declare a bitmap and use > to_cpumask(). Of course, if we ever really want to remove NR_CPUS and > make it completely generic, we have to kill all these too, but noone is > serious about that. So, I guess this currently is caught in a place which isn't here or there. I'm pretty skeptical whether it makes sense to bother about static usages tho. Can I keep them for static ones? Thanks. -- tejun