From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933470AbcI3SqL (ORCPT ); Fri, 30 Sep 2016 14:46:11 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:58739 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933366AbcI3Spy (ORCPT ); Fri, 30 Sep 2016 14:45:54 -0400 Date: Fri, 30 Sep 2016 20:43:26 +0200 (CEST) From: Thomas Gleixner To: Steven Rostedt cc: Sebastian Andrzej Siewior , linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, peterz@infradead.org Subject: Re: [PATCH RT] kernel/futex: don't deboost too early In-Reply-To: <20160930120038.5fe7d535@grimm.local.home> Message-ID: References: <20160930083913.aqjpynzsj5d3xxho@linutronix.de> <20160930120038.5fe7d535@grimm.local.home> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Sep 2016, Steven Rostedt wrote: > This looks awfully complex. Would something as simple as this work? > > What harm can happen by moving the holding of the lock after the > wakeups for RT? That's exactly bringing us back to the state before we added the delayed wakeup so that the woken waiter will not be blocked on hb->lock right away. That's 2 extra context switches for nothing. Thanks, tglx