Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755731Ab0GAMrX (ORCPT ); Thu, 1 Jul 2010 08:47:23 -0400 Received: from casper.infradead.org ([85.118.1.10]:36802 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753877Ab0GAMrV convert rfc822-to-8bit (ORCPT ); Thu, 1 Jul 2010 08:47:21 -0400 Subject: Re: [PATCH repost] sched: export sched_set/getaffinity to modules From: Peter Zijlstra To: "Michael S. Tsirkin" Cc: Ingo Molnar , Sridhar Samudrala , Tejun Heo , Oleg Nesterov , netdev , lkml , "kvm@vger.kernel.org" , Andrew Morton , Dmitri Vorobiev , Jiri Kosina , Thomas Gleixner , Andi Kleen In-Reply-To: <1277987657.1917.32.camel@laptop> References: <4BFFE742.2060205@kernel.org> <20100530112925.GB27611@redhat.com> <4C02C99D.9070204@kernel.org> <20100624081135.GA937@redhat.com> <1277419551.27868.27.camel@w-sridhar.beaverton.ibm.com> <20100625101022.GA16321@redhat.com> <20100701110708.GA27368@redhat.com> <1277983179.1917.10.camel@laptop> <1277984603.1917.15.camel@laptop> <20100701115507.GA31333@redhat.com> <20100701122340.GB31333@redhat.com> <1277987657.1917.32.camel@laptop> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Thu, 01 Jul 2010 14:46:35 +0200 Message-ID: <1277988395.1917.47.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 847 Lines: 19 On Thu, 2010-07-01 at 14:34 +0200, Peter Zijlstra wrote: > On Thu, 2010-07-01 at 15:23 +0300, Michael S. Tsirkin wrote: > > > > The patch using this is here: > > http://www.mail-archive.com/kvm@vger.kernel.org/msg35411.html > > > > It simply copies the affinity from the parent when thread is created. > > Sounds like policy, not something the kernel should do.. The alternative would be using clone() instead of thread_create() and inherit everything from the creating task. Inheriting from kthreadd and then undoing some aspects just sounds like daft policy that really ought to be in userspace. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/