From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751910AbaF0STI (ORCPT ); Fri, 27 Jun 2014 14:19:08 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.230]:27939 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750862AbaF0STG (ORCPT ); Fri, 27 Jun 2014 14:19:06 -0400 Date: Fri, 27 Jun 2014 14:19:03 -0400 From: Steven Rostedt To: Mike Galbraith Cc: Austin Schuh , Thomas Gleixner , Richard Weinberger , LKML , rt-users Subject: Re: Filesystem lockup with CONFIG_PREEMPT_RT Message-ID: <20140627141903.16817c28@gandalf.local.home> In-Reply-To: <1403892474.5830.41.camel@marge.simpson.net> References: <1403873856.5827.56.camel@marge.simpson.net> <20140627100157.6b0143a5@gandalf.local.home> <1403890493.5830.33.camel@marge.simpson.net> <20140627135415.7246e87e@gandalf.local.home> <1403892474.5830.41.camel@marge.simpson.net> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 27 Jun 2014 20:07:54 +0200 Mike Galbraith wrote: > > Why do we need the wakeup? the owner of the lock should wake it up > > shouldn't it? > > True, but that can take ages. Can it? If the workqueue is of some higher priority, it should boost the process that owns the lock. Otherwise it just waits like anything else does. I much rather keep the paradigm of the mainline kernel than to add a bunch of hacks that can cause more unforeseen side effects that may cause other issues. Remember, this would only be for spinlocks converted into a rtmutex, not for normal mutex or other sleeps. In mainline, the wake up still would not happen so why are we waking it up here? This seems similar to the BKL crap we had to deal with as well. If we were going to sleep because we were blocked on a spinlock converted rtmutex we could not release and retake the BKL because we would end up blocked on two locks. Instead, we made sure that the spinlock would not release or take the BKL. It kept with the paradigm of mainline and worked. Sucked, but it worked. -- Steve