From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757329AbYB2GyR (ORCPT ); Fri, 29 Feb 2008 01:54:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753619AbYB2GyF (ORCPT ); Fri, 29 Feb 2008 01:54:05 -0500 Received: from relay2.sgi.com ([192.48.171.30]:45165 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751848AbYB2GyD (ORCPT ); Fri, 29 Feb 2008 01:54:03 -0500 Date: Fri, 29 Feb 2008 00:53:54 -0600 From: Paul Jackson To: David Rientjes Cc: mingo@elte.hu, a.p.zijlstra@chello.nl, tglx@linutronix.de, oleg@tv-sign.ru, rostedt@goodmis.org, maxk@qualcomm.com, linux-kernel@vger.kernel.org Subject: Re: [RFC/PATCH 0/4] CPUSET driven CPU isolation Message-Id: <20080229005354.21631c09.pj@sgi.com> In-Reply-To: References: <20080227222103.673194000@chello.nl> <20080228075010.GA28781@elte.hu> <20080228020808.3fd22f77.pj@sgi.com> <20080228090847.GA1133@elte.hu> <20080228031710.3405e405.pj@sgi.com> <20080228113728.7b8e5811.pj@sgi.com> <20080228164637.114fb19d.pj@sgi.com> <20080228181611.49671331.pj@sgi.com> <20080228213402.7260906f.pj@sgi.com> Organization: SGI X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.12.0; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David wrote: > @@ -1162,6 +1162,8 @@ static int cpuset_can_attach(struct cgroup_subsys *ss, > > if (cpus_empty(cs->cpus_allowed) || nodes_empty(cs->mems_allowed)) > return -ENOSPC; > + if (tsk->flags & PF_THREAD_BOUND) > + return -EINVAL; > > return security_task_setscheduler(tsk, 0, NULL); > } I'm ok with this. -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson 1.940.382.4214