Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5964020ybl; Tue, 10 Dec 2019 14:34:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzdtjf06Du10n/xqkIaZitth+C5mlpikDPXeHFOK8/e01Ha3n8bwnaXIbjQJ3nhT8RziGow X-Received: by 2002:aca:4d0f:: with SMTP id a15mr318349oib.21.1576017267122; Tue, 10 Dec 2019 14:34:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576017267; cv=none; d=google.com; s=arc-20160816; b=ShzD5Li7iQq6KeFYsqU8hDpskpsaipWGKlOlcKvD5ySyqnnF1we0I5kmTTGGmWmHvy 3JPDMrcP9NzO3mNyHU74vKK+6EmVBNHGorKyE6vCwWWsQ9Y3yp7HoOpn3ihuPBLByWoR EUBwjPg8XWQ+6miH0YVrr+F2+KERkxp6KBePvHGdS6k7o5pbU1AVF3FyBMAQ1pbWxEzW N0R2zD2KnYxZBuFh5dkJsun/KJR2Kxyg9cwVFm7mbj7bgqQre+VehvzaaZQdhpQh7e0B PFvzOP8Q1ttxOlSbCKdjN+yQBqXqNMYoRHkrxb1x6PzdB104FSILbc45+H3/9Q6BXKIo kJVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:message-id:date :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization:dkim-signature; bh=DIEGxaEoEqnxv3W7KxXHjyimH36onDwUaRqX3wb5gSo=; b=bjb/EbiF8WE+CsoO0ZoqD1iv/8ptLJi4vpPl7uAKOM4X8gBGBitllnlAkEehLZFoRU PE4ENC4MEGo2jpbn/LZ4I++et7uphujfC5MSagAVt5AgAb9CEk0nYEqt2mg1P9ZjqJLD U+bB94383YutHCGy3kEHxrtFxZvQT09lJZz0j4LlAaoWIeEwAIlQjJxVcs5D3N1/fXqU dNxfwGbQ+ORHQLpF+p7xk56nhsRXbuGXVhLW/B5FSQpz4AA6tN/5WaWOxoHWuNv40g3U T6F7UZhP4xlaIkTRkV7LhreaLWtqtOXtv0ps3hqbE2713JfZf1vcuJzfpLhpoggSWTH9 eHAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LFKPWlTe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u185si3840oia.4.2019.12.10.14.34.14; Tue, 10 Dec 2019 14:34:27 -0800 (PST) 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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LFKPWlTe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728263AbfLJWdD (ORCPT + 99 others); Tue, 10 Dec 2019 17:33:03 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:34275 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729403AbfLJWcV (ORCPT ); Tue, 10 Dec 2019 17:32:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576017140; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DIEGxaEoEqnxv3W7KxXHjyimH36onDwUaRqX3wb5gSo=; b=LFKPWlTe7u6TnMA7crp/fd/4aiJ6lABRNz3CfHQO7vGoSvMHROXZaTlt7fUCFNRIJWQBnl kTX0p9cvoKpn0QvzUotLrYME9LN5OTUrYPnHoq6Y/RcLT6d57rZjAScvJtBBRs9aOREd// /+GIhzqx3RljqJKr8FZrajFGZWE/6AQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-205-CRXAWaLROYCkocpE2NuCbA-1; Tue, 10 Dec 2019 17:32:16 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 426DD800D41; Tue, 10 Dec 2019 22:32:15 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-250.rdu2.redhat.com [10.10.120.250]) by smtp.corp.redhat.com (Postfix) with ESMTP id 818A45D9C5; Tue, 10 Dec 2019 22:32:13 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20191210220523.28540-1-dave@stgolabs.net> References: <20191210220523.28540-1-dave@stgolabs.net> <20191210193011.GA11802@worktop.programming.kicks-ass.net> To: Davidlohr Bueso Cc: dhowells@redhat.com, peterz@infradead.org, linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, tglx@linutronix.de, will@kernel.org, Davidlohr Bueso Subject: Re: [PATCH] Revert "locking/mutex: Complain upon mutex API misuse in IRQ contexts" MIME-Version: 1.0 Content-ID: <24324.1576017132.1@warthog.procyon.org.uk> Date: Tue, 10 Dec 2019 22:32:12 +0000 Message-ID: <24325.1576017132@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: CRXAWaLROYCkocpE2NuCbA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Davidlohr Bueso wrote: > This ended up causing some noise in places such as rxrpc running in softi= rq. >=20 > The warning is misleading in this case as the mutex trylock and unlock > operations are done within the same context; and therefore we need not > worry about the PI-boosting issues that comes along with no single-owner > lock guarantees. >=20 > While we don't want to support this in mutexes, there is no way out of > this yet; so lets get rid of the WARNs for now, as it is only fair to > code that has historically relied on non-preemptible softirq guarantees. > In addition, changing the lock type is also unviable: exclusive rwsems > have the same issue (just not the WARN_ON) and counting semaphores > would introduce a performance hit as mutexes are a lot more optimized. >=20 > This reverts commit 5d4ebaa87329ef226e74e52c80ac1c62e4948987. >=20 > Signed-off-by: Davidlohr Bueso Tested-by: David Howells