From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754551Ab2CIKXM (ORCPT ); Fri, 9 Mar 2012 05:23:12 -0500 Received: from www.linutronix.de ([62.245.132.108]:45770 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753224Ab2CIKXK (ORCPT ); Fri, 9 Mar 2012 05:23:10 -0500 Date: Fri, 9 Mar 2012 11:23:05 +0100 (CET) From: Thomas Gleixner To: Steven Rostedt cc: Peter Zijlstra , LKML , linux-rt-users Subject: Re: [ANNOUNCE] 3.2.9-rt17 In-Reply-To: <1331261425.25686.527.camel@gandalf.stny.rr.com> Message-ID: References: <1331230991.25686.452.camel@gandalf.stny.rr.com> <1331231287.11248.396.camel@twins> <1331232159.25686.456.camel@gandalf.stny.rr.com> <1331235579.11248.402.camel@twins> <1331237441.25686.469.camel@gandalf.stny.rr.com> <1331261425.25686.527.camel@gandalf.stny.rr.com> User-Agent: Alpine 2.02 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Mar 2012, Steven Rostedt wrote: > On Fri, 2012-03-09 at 01:20 +0100, Thomas Gleixner wrote: > > So yopu need to replace the trylock by try_deadlock() and boost the > > lock owner w/o blocking on the lock. That means that you need some > > other means to tell the lock owner that you are waiting for it w/o > > actually waiting. > > Actually, you don't need to tell the lock owner you are waiting for it, > you only need to make the lock itself have a priority, and the owner > will inherit that priority as long as it holds the lock. Hmm, that would actually work, though I'm not too enthusiastic about sched_yield(). Thanks, tglx