Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752979AbaF0TL5 (ORCPT ); Fri, 27 Jun 2014 15:11:57 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:56389 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751984AbaF0TL4 (ORCPT ); Fri, 27 Jun 2014 15:11:56 -0400 Message-ID: <1403896312.5830.77.camel@marge.simpson.net> Subject: Re: Filesystem lockup with CONFIG_PREEMPT_RT From: Mike Galbraith To: Steven Rostedt Cc: Austin Schuh , Thomas Gleixner , Richard Weinberger , LKML , rt-users Date: Fri, 27 Jun 2014 21:11:52 +0200 In-Reply-To: <20140627141903.16817c28@gandalf.local.home> 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> <20140627141903.16817c28@gandalf.local.home> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2014-06-27 at 14:19 -0400, Steven Rostedt wrote: > 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. No, not like everything else, preempt a lock holder. IO that starts moving upon context switch in a stock kernel can rot for ages in rt when an IO packing task bumps into lock held by preempted task. When there's a prio delta on a lock, sure, PI kicks in to help a high prio task.. but there is no PI help for high priority task waiting on IO stuck behind a low prio task plug. (you're taking workqueue, I'm talking IO, but the two meet in things like raid too. you can't prioritize workqueues, and PI doesn't really have a lot to do with the general issue of things happening or not happening at context switch time, and consequences thereof) > 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. The paradigm of mainline is to start IO on context switch, reason for that is IO deadlock prevention. We need to follow paradigm somehow. That somehow really wants to be a tad prettier and more guaranteed than my somehow :) -Mike -- 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/