Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760466AbYBYWKb (ORCPT ); Mon, 25 Feb 2008 17:10:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757550AbYBYWKL (ORCPT ); Mon, 25 Feb 2008 17:10:11 -0500 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:41971 "EHLO amd.ucw.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754357AbYBYWKJ (ORCPT ); Mon, 25 Feb 2008 17:10:09 -0500 Date: Mon, 25 Feb 2008 23:10:33 +0100 From: Pavel Machek To: Gregory Haskins Cc: mingo@elte.hu, a.p.zijlstra@chello.nl, tglx@linutronix.de, rostedt@goodmis.org, linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, bill.huey@gmail.com, kevin@hilman.org, cminyard@mvista.com, dsingleton@mvista.com, dwalker@mvista.com, npiggin@suse.de, dsaxena@plexity.net, ak@suse.de, acme@redhat.com, gregkh@suse.de, sdietrich@novell.com, pmorreale@novell.com, mkohari@novell.com Subject: Re: [(RT RFC) PATCH v2 8/9] adjust pi_lock usage in wakeup Message-ID: <20080225221033.GJ2659@elf.ucw.cz> References: <20080225155959.11268.35541.stgit@novell1.haskins.net> <20080225160118.11268.47575.stgit@novell1.haskins.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080225160118.11268.47575.stgit@novell1.haskins.net> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 907 Lines: 23 On Mon 2008-02-25 11:01:18, Gregory Haskins wrote: > From: Peter W.Morreale > > In wakeup_next_waiter(), we take the pi_lock, and then find out whether > we have another waiter to add to the pending owner. We can reduce > contention on the pi_lock for the pending owner if we first obtain the > pointer to the next waiter outside of the pi_lock. > > This patch adds a measureable increase in throughput. > > Signed-off-by: Peter W. Morreale Missing sign-off. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/