Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261768AbVC3GvH (ORCPT ); Wed, 30 Mar 2005 01:51:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261773AbVC3GvH (ORCPT ); Wed, 30 Mar 2005 01:51:07 -0500 Received: from mx1.elte.hu ([157.181.1.137]:33981 "EHLO mx1.elte.hu") by vger.kernel.org with ESMTP id S261768AbVC3GvD (ORCPT ); Wed, 30 Mar 2005 01:51:03 -0500 Date: Wed, 30 Mar 2005 08:50:11 +0200 From: Ingo Molnar To: Steven Rostedt Cc: Esben Nielsen , LKML Subject: Re: [patch] Real-Time Preemption, -RT-2.6.12-rc1-V0.7.41-07 Message-ID: <20050330065011.GA18417@elte.hu> References: <1112164313.3691.100.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1112164313.3691.100.camel@localhost.localdomain> User-Agent: Mutt/1.4.2.1i X-ELTE-SpamVersion: MailScanner 4.31.6-itk1 (ELTE 1.2) SpamAssassin 2.63 ClamAV 0.73 X-ELTE-VirusStatus: clean X-ELTE-SpamCheck: no X-ELTE-SpamCheck-Details: score=-4.9, required 5.9, autolearn=not spam, BAYES_00 -4.90 X-ELTE-SpamLevel: X-ELTE-SpamScore: -4 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 966 Lines: 23 * Steven Rostedt wrote: > OK, I'm declaring defeat here. I've been fighting race conditions all > day, and it's now 1 in the morning where I live. It looks like this > implementation has no other choice but to have the waking up "pending > owner" take the wait_list lock once again. How heavy of a overhead is > that really? as i mentioned it before, taking a lock is not a big issue at all. Since you have to touch the lock data structure anyway (and all of it fits into a single cacheline), it doesnt really matter whether it's atomic flag setting/clearing, or raw spinlock based. later on, once things are stable and well-understood, we can still attempt to micro-optimize it. Ingo - 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/