Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756254AbZGVG2o (ORCPT ); Wed, 22 Jul 2009 02:28:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752457AbZGVG2o (ORCPT ); Wed, 22 Jul 2009 02:28:44 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:56670 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752219AbZGVG2n (ORCPT ); Wed, 22 Jul 2009 02:28:43 -0400 Subject: Re: [patch 1/3] net: serialize hrtimer callback in sched_cbq From: Peter Zijlstra To: David Miller Cc: torvalds@linux-foundation.org, tglx@linutronix.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kaber@trash.net In-Reply-To: <20090721.201855.32703627.davem@davemloft.net> References: <1247588890.7500.186.camel@twins> <1247832892.15751.35.camel@twins> <20090721.201855.32703627.davem@davemloft.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 22 Jul 2009 08:29:44 +0200 Message-Id: <1248244184.27058.992.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1364 Lines: 35 On Tue, 2009-07-21 at 20:18 -0700, David Miller wrote: > From: Peter Zijlstra > Date: Fri, 17 Jul 2009 14:14:52 +0200 > > > On Tue, 2009-07-14 at 09:42 -0700, Linus Torvalds wrote: > >> > >> On Tue, 14 Jul 2009, Peter Zijlstra wrote: > >> > > >> > Linus really hated the softirq mode, which is what prompted me to change > >> > that. > >> > > >> > Now, it might be he only hated the particular interface and the > >> > resulting code, but I think to remember he simply thought the whole > >> > thing daft. > >> > >> Yes. And I hated the bugs it had. > >> > >> Don't make something as core as timers any more complicated. Don't take > >> locks in timers and then complain about deadlocks. If your locking is > >> broken, don't make the core timers be idiotically broken. > >> > >> Because it was. The code was a total mess to follow, and had bugs. > > > > How would something like the below work for people? > > I like it, but like Linus said it probably belongs in > kernel/softirq.c Right, I meant to rework it, but stuff kept preempting me. I'll try and get around to it today :-) -- 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/