Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030255AbVLSEoM (ORCPT ); Sun, 18 Dec 2005 23:44:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030263AbVLSEoM (ORCPT ); Sun, 18 Dec 2005 23:44:12 -0500 Received: from ms-smtp-02.nyroc.rr.com ([24.24.2.56]:27356 "EHLO ms-smtp-02.nyroc.rr.com") by vger.kernel.org with ESMTP id S1030255AbVLSEoL (ORCPT ); Sun, 18 Dec 2005 23:44:11 -0500 Subject: Re: [patch 05/15] Generic Mutex Subsystem, mutex-core.patch From: Steven Rostedt To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Andrew Morton , Arjan van de Ven , Alan Cox , Christoph Hellwig , Andi Kleen , David Howells , Alexander Viro , Oleg Nesterov , Paul Jackson In-Reply-To: <20051219013718.GA28038@elte.hu> References: <20051219013718.GA28038@elte.hu> Content-Type: text/plain Date: Sun, 18 Dec 2005 23:43:48 -0500 Message-Id: <1134967428.13138.227.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 863 Lines: 27 On Mon, 2005-12-19 at 02:37 +0100, Ingo Molnar wrote: > +static inline void > +__mutex_wakeup_waiter(struct mutex *lock __IP_DECL__) > +{ > + struct mutex_waiter *waiter; > + > + SMP_DEBUG_WARN_ON(!spin_is_locked(&lock->wait_lock)); > + DEBUG_WARN_ON(list_empty(&lock->wait_list)); > + > + /* > + * Get the first entry from the wait-list: > + */ > + waiter = list_entry(lock->wait_list.next, struct mutex_waiter, > list); > + Any thought about adding priorities to the queue here? Maybe another time we can add the plist? But maybe I'm getting ahead of myself. -- Steve - 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/