Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4993127yba; Tue, 30 Apr 2019 07:32:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxOP6ucid6eUriM3j4SMa3wjmV7qWmM7XUUpgyd668XY8dHPaMWZZ5sl75YQluJN0VDfOj X-Received: by 2002:a63:8dc8:: with SMTP id z191mr31139897pgd.9.1556634754348; Tue, 30 Apr 2019 07:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556634754; cv=none; d=google.com; s=arc-20160816; b=Z0wPoZLiUGehZzZipfAocsx2wvc+pEl1Ur1aX7w7dpc2LQQz6llnzD34bhxL4FFUO+ YfV2+Fw7eLaluZiwjgdV66R7UPbYVG3R30DQvT5GKQfwYxHDPcP526rjlJuRfXEoM874 1psB9CPoY0NVT1EVHeaFBLB5Ds0eYSCdRvj57kw6WVtTuYDAFDQDhIMtRuVSz9jummig 5HkfuKduLOz/BhGCHkLkkG+SPcSiJsbTKrUSSQI8ETsp8/9nofDtym1p4Ek4WJsRguTO QwXn73EjW93pR6/3akw8xi6F5zeCcQqEvEJVUe3vSg1BOe2tPD3p05AsSHrnEAOotp1T jrdg== 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=H4+KAPmjx58DIhwVOO8DsRJgwzL0afbdwEtz43iN/Dw=; b=reaVp71hqUIkffLnHvOs6j5qY4bb9afyGpfchcw+iGMTJ1mdbd6tB+/kJqgtlU2B3J LMXfbzHY7GBWSkbB1wIglDuecARFAgSD/sIi480Bmf1DjgWE5OTVOJj4BLvVUjnlf3b6 qJ2MSqR/XjiB1wSAHzh50gMgazFLwH1mbWzTk0HlyhR35u46Y9l7HgT8mUDJGw00naIA vrCRVYjCnkZdMGjEJa+heLnQ/2uTq5bVvLobzUAYb9YyT9szud8MgfV+LHfk9a6eiPlk rlkC+OcUTTQxB6nTW7ng7ODnzYbEoQ+S/o44M70/xfgGJYhmk2Xd+zmnGdOADHsNAl/R ME/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qeO0cllV; 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 q5si24401771pgv.51.2019.04.30.07.32.16; Tue, 30 Apr 2019 07:32:34 -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=qeO0cllV; 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 S1727004AbfD3O3z (ORCPT + 99 others); Tue, 30 Apr 2019 10:29:55 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:36004 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbfD3O3z (ORCPT ); Tue, 30 Apr 2019 10:29:55 -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=H4+KAPmjx58DIhwVOO8DsRJgwzL0afbdwEtz43iN/Dw=; b=qeO0cllVcOA1oaf4HAuMfdckj RhFwPVYQGDmsZMoFiuGNTaPt8hExZGUfXOVhRnw8/zlURThnFPBTtWt5mOOXPYbSfTLIQJn4aW9Qe T0eL5b6B3mFexBBD3j97bCKiumW6TnRblkqCsJPhVr972iJXUUxIArSb7OS8sSpr3Whe4gZyVYDDs JRNjh4TAkjvvlg3/FuYPsV8+JSqtyufQCyoMR2gP5h/TBNy/02iyCVOsEYKNDuJpj7iH03oK85KWi AFSd4bpfLifmlNvRSG0Z/LxbfrrT8NS3MYhdjKi9AsNGxMKxobuAsT40q1IQ7odBi04Fh2xXXi2/Q i5gUL2gLQ==; 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 1hLTlY-00087M-Cx; Tue, 30 Apr 2019 14:29:52 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6CFBA29D226A0; Tue, 30 Apr 2019 16:29:50 +0200 (CEST) Date: Tue, 30 Apr 2019 16:29:50 +0200 From: Peter Zijlstra To: Oleg Nesterov Cc: Sebastian Andrzej Siewior , linux-rt-users , LKML , Thomas Gleixner , Daniel Bristot de Oliveira , Clark Williams , Juri Lelli , jack@suse.com Subject: Re: [RT WARNING] DEBUG_LOCKS_WARN_ON(rt_mutex_owner(lock) != current) with fsfreeze (4.19.25-rt16) Message-ID: <20190430142950.GG2589@hirez.programming.kicks-ass.net> References: <20190326093421.GA29508@localhost.localdomain> <20190419085627.GI4742@localhost.localdomain> <20190430125130.uw7mhdnsoqr2v3gf@linutronix.de> <20190430132811.GB2589@hirez.programming.kicks-ass.net> <20190430141500.GE23020@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190430141500.GE23020@redhat.com> 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, Apr 30, 2019 at 04:15:01PM +0200, Oleg Nesterov wrote: > Sorry, I don't understand... So the problem is that on -RT rwsem uses PI mutexes, and the below just cannot work. Also see: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/tree/include/linux/rwsem_rt.h?h=linux-5.0.y-rt https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/tree/kernel/locking/rwsem-rt.c?h=linux-5.0.y-rt > On 04/30, Peter Zijlstra wrote: > > > > Thaw then does the reverse, frobs lockdep > > Yes, in particular it does > > lockdep_sb_freeze_acquire() > percpu_rwsem_acquire() > sem->rw_sem.owner = current; > Oh ARGGH, I missed that. This is horrible :-(