Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6255100yba; Tue, 14 May 2019 04:38:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0Gylp59CO/HfVB3svfEJfX5n3az0OpaalvhQREfu+vJfa+76mtcRot2oyrlFpuHmJt1nN X-Received: by 2002:a17:902:e00a:: with SMTP id ca10mr38108925plb.18.1557833905365; Tue, 14 May 2019 04:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557833905; cv=none; d=google.com; s=arc-20160816; b=soZjDJY/oTEqtxqtC1gvL5JzBloxdR6y18/W5lCDl+SxtFr3Kpe4VXsG91ZlGqo5Rr af8SDWu0zklBAOi3abrVROWas73quGIaUPFbWoMyAnf7+k1WbXZcHTOsQ8rTodcVRRue zVVWaYkl3c3M7qkDKM2a5aJnaDEgtl5OD9kcutihOrhbtr231UiBU/k22Yh0RAlCcK1A bR8h2OymqF3kT8+tKUHcCEUq8ufAqEa5n9taZ1acFKgeMHILVc2aQFu3Q1XD9E7OS5T2 0r4Pe12d2mnqMAY7h+rhVL2Cjr3GjlTwrzkscpL9sb6WueIx1/6A/8R0DVrHcY2ZuwV2 Nc+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Hdo3J+SKgWMYdkmLex1ScT4QKrEl5Fkd2SvwQB3f/zU=; b=kVpYzohNR0FJORmuvQKv6uVEW30fn/cx6h5hVyXwJLjVUvw1oQgZxCkN+fUWeyZ9GV 6Y5tZqKS/C2XYpaZ/UajDBAIIb6pa9as1ngLQV+b/t/QN/PGXjsI+jHmcuz3U6LDu5p/ vGw9NeJG2TtvmhdvTUp/yb9GzdVz2+gqDqyYqjkfUEnL6DBHpDb/05wnhq7VSKmANRx1 263Cvvu11VoGQ1KnjpTeVhXfe8WstRFqtVdUo+kphWMphkUMvKRzukpcX/4ipSRzVpmD uH5KDAQ1MKPgZ505Nts6tb3vO7WsHNAk8GMvUl4jRKlQriUDGRPFjFKC5dkgY7NNS03g uaww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eG6Qnz3D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si20878145pgx.176.2019.05.14.04.38.08; Tue, 14 May 2019 04:38:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eG6Qnz3D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726303AbfENLfs (ORCPT + 99 others); Tue, 14 May 2019 07:35:48 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57716 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725893AbfENLfs (ORCPT ); Tue, 14 May 2019 07:35:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Hdo3J+SKgWMYdkmLex1ScT4QKrEl5Fkd2SvwQB3f/zU=; b=eG6Qnz3DL+iAnoIykPjWycQ24 XVA3G+osUl6uBIBNgtqHwidCwRHxK4E9/K0v2UHH4+oswQZYC5gpYwRC42f3z68fe9KUI63ivYlXy XmPckJkK3cfuX4iq7yxWqsecCrfMSd3yjuDodOmL79Hx1EHi9OqtTG1L8uw9npWO+E74yxREqK8RM FXCMz/eSYKCYVFQUiEKaWuaz2EtG+q3ZRXnqFL36QaGx1hrR014pGceOmHYXmNpRTIqvptgjFhnYk QwnnicyeLIGkbxUcyA37jw9S5joDPHb27g2VajMJV+lxF1fwlFaZMjmrguQEnZOCGxgsHnT6hwUln TWc5opcVw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQVie-0000IC-M5; Tue, 14 May 2019 11:35:40 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 89F562029F877; Tue, 14 May 2019 13:35:38 +0200 (CEST) Date: Tue, 14 May 2019 13:35:38 +0200 From: Peter Zijlstra To: Sebastian Andrzej Siewior Cc: minyard@acm.org, linux-rt-users@vger.kernel.org, Corey Minyard , linux-kernel@vger.kernel.org, tglx@linutronix.de, Steven Rostedt , Ingo Molnar Subject: Re: [PATCH RT v2] Fix a lockup in wait_for_completion() and friends Message-ID: <20190514113538.GL2589@hirez.programming.kicks-ass.net> References: <20190508205728.25557-1-minyard@acm.org> <20190509161925.kul66w54wpjcinuc@linutronix.de> <20190514084356.GJ2589@hirez.programming.kicks-ass.net> <20190514091219.nesriqe7qplk3476@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190514091219.nesriqe7qplk3476@linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 14, 2019 at 11:12:19AM +0200, Sebastian Andrzej Siewior wrote: > On 2019-05-14 10:43:56 [+0200], Peter Zijlstra wrote: > > Now.. that will fix it, but I think it is also wrong. > > > > The problem being that it violates FIFO, something that might be more > > important on -RT than elsewhere. > > Wouldn't -RT be more about waking the task with the highest priority > instead the one that waited the longest? Possibly, but that's a far larger patch. Also, even with that completions do not avoid inversions and thus don't really make nice RT primitives anyway.