Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756240Ab0KOA1M (ORCPT ); Sun, 14 Nov 2010 19:27:12 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:57860 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755368Ab0KOA1L (ORCPT ); Sun, 14 Nov 2010 19:27:11 -0500 MIME-Version: 1.0 In-Reply-To: References: <1289489200.11397.21.camel@maggy.simson.net> <20101111202703.GA16282@redhat.com> <1289514000.21413.204.camel@maggy.simson.net> <20101112181240.GB8659@redhat.com> <1289648524.22764.149.camel@maggy.simson.net> <1289755150.3228.44.camel@maggy.simson.net> <20101114174921.GA1569@arch.trippelsdorf.de> <1289758238.17491.12.camel@maggy.simson.net> <20101114202734.GA1627@arch.trippelsdorf.de> <1289778189.5154.10.camel@maggy.simson.net> From: Linus Torvalds Date: Sun, 14 Nov 2010 16:26:47 -0800 Message-ID: Subject: Re: [RFC/RFT PATCH v3] sched: automated per tty task groups To: Mike Galbraith Cc: Markus Trippelsdorf , Oleg Nesterov , Peter Zijlstra , Mathieu Desnoyers , Ingo Molnar , LKML Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1143 Lines: 25 On Sun, Nov 14, 2010 at 4:15 PM, Linus Torvalds wrote: > > THAT is why I think it's so silly to try to be so strict and walk over > all processes while holding a couple of spinlocks. Btw, let me say that I think the patch is great even with that thing in. It looks clean, the thing I'm complaining about is not a big deal, and it seems to perform very much as advertized. The difference with autogroup scheduling is very noticeable with a simple "make -j64" kernel compile. So I really don't think it's a big deal. The sysctl handler isn't even complicated. But boy does it hurt my eyes to see a spinlock held around a "do_each_thread()". And I do get the feeling that the simplest way to fix it would be to just remove the code entirely, and just say that "enabling/disabling may be delayed for old processes with existing autogroups". Linus -- 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/