Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6011729ybl; Tue, 10 Dec 2019 15:27:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyoidPbfG6L8N/b9ijyUmf/LH8wt+3tQAmytKMX+YbWoRn8PsDmqkTLxdUmeFhmBXvNNrII X-Received: by 2002:a9d:6745:: with SMTP id w5mr230157otm.221.1576020464463; Tue, 10 Dec 2019 15:27:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576020464; cv=none; d=google.com; s=arc-20160816; b=WhMfe5F30jLBd5LqNiFklCMaW8kAU/05giV3bJzp/AgBZD+ACrV7Fd/tCHEEQKO6aU iLSENKoOk9PV8ptYIUvzphmf8OTL5kwYKpo8aKAumkWQURDwRovGM4A71HKzjVRWWeun 826MVDBum7Y8gF+ra/6pNTTN6UCaudGzrQnsw5vhp/J4LwCEGd9qCC8XjnNp/jsUFpRc gPD0XuMeax3ayar5Rz6iJBIMFZdAUKjc0usIW37D2egdbx5zNMslHqyXAn0Pg1ROK7rl uQEMDO2d0BKycDsdtFqYh4wvOwojdTtun2pnRwYj8F2hrVgN+WQuIHStefQcUyTQf6JM 7FfA== 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=wxkeZ4mYHV1Efx0eTIxyKSIJuDm6NlhmYQEvvwWfjTM=; b=kGcYvJw/u1SI4zhELcXy400LjjWF8VquOFjvD7nvxKnJyFQp8iSHNN7IPlNWGp/s9X BklfuUuNx0hDNw39kuE/hNlw8/4DO1wqoEPJzvB1sGCpimntIo2OHaK5bOdqNCBjVFNn VcupqX928/JYpQhWz9wSzj3px1RDcX9M/oUXOjk8dvivF6cFhjvuZfXlHpmL7ZQGmCBO eZByFj4DI+jeUMJOiHQ49LxkQK+QAuLVC0aXQ4d7P6Q+97d/DlMh9P3dTftmSFpr1/QX c6n6gcz+VupmxR2U7r5J6Xptp50FSnSF0RiHECNI03HFmJ3eTp4wc99oGCiXZzKyTvY5 809w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=qJPO5yNN; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u18si66821oia.80.2019.12.10.15.27.31; Tue, 10 Dec 2019 15:27:44 -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=fail header.i=@gmail.com header.s=20161025 header.b=qJPO5yNN; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727193AbfLJX1B (ORCPT + 99 others); Tue, 10 Dec 2019 18:27:01 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33091 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbfLJX1A (ORCPT ); Tue, 10 Dec 2019 18:27:00 -0500 Received: by mail-wr1-f66.google.com with SMTP id b6so22046895wrq.0; Tue, 10 Dec 2019 15:26:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wxkeZ4mYHV1Efx0eTIxyKSIJuDm6NlhmYQEvvwWfjTM=; b=qJPO5yNNFbfflnYIAWu1hS8nATPbH+TmqomNqLEa5gLu7OZSF8V3KyuU3MiGzDZEgL 9n4AQD+8SraPxNIo/8r6U/JiJ2PRXxbIl0dGOQJXym7iij/ySYbL7OuTyB6lMTEzf7xA 1yREADbdTz3tMrylfed9XPCvWLt89pzNtkpZoRKoN2aIxilPK1v9O4RepZrDOfG9we8u DYxVetXaXuKuYryyd+YQmbl/0zCAjaxMYng2YHHkTiOPqXuqFukkOTYTdFd549azwW5n wKtOKoiF+aYENVi/X+jaiKvrMiV6addY0CtSBsAr41f8blwTfU91zUIS9/wJG7wMSB9c 9DVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=wxkeZ4mYHV1Efx0eTIxyKSIJuDm6NlhmYQEvvwWfjTM=; b=Raa/EBO3zKqE/wBsWYgOLA8hirJS3h1lQEoO98eW1ddkioZP98s6ub8rR/syeiPkZT 9/nXYivGTeLS3PFAoWn7GrAwdIS2kjU5bDEbH97/jI9VcJJQgbdGPyI7vPYJgYKvC3e6 uWJhbk+25Le6G19osS8ApV38lt4L0GzReXzTmFTJdwzGQmCWwGWgemxkOakSddQALV64 RsM//AKTKm0oDWvoPQu2GXBKLUEp7wtWe6f70hWb6QZ9/6AAnRld1C31tKM9kC5AmGt5 C+TZRcifQnLmRt1efEFIphiki9lIkO/6SfPO9kyNi/b3EFCMZbBcU0WwI2jXZkICf02w ChNQ== X-Gm-Message-State: APjAAAVXoWvWn5N6QdDetfVw3HdiKdaBnCnk0peY9A2R2BCm3lDpoVyP GCwSsnpxgVEEaC2d0x+9rGk= X-Received: by 2002:adf:e6c6:: with SMTP id y6mr101597wrm.284.1576020418512; Tue, 10 Dec 2019 15:26:58 -0800 (PST) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id b17sm88329wrx.15.2019.12.10.15.26.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 15:26:58 -0800 (PST) Date: Wed, 11 Dec 2019 00:26:55 +0100 From: Ingo Molnar To: Davidlohr Bueso Cc: peterz@infradead.org, dhowells@redhat.com, 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" Message-ID: <20191210232655.GA80975@gmail.com> References: <20191210193011.GA11802@worktop.programming.kicks-ass.net> <20191210220523.28540-1-dave@stgolabs.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191210220523.28540-1-dave@stgolabs.net> 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 * Davidlohr Bueso wrote: > This ended up causing some noise in places such as rxrpc running in softirq. > > 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. > > 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. > > This reverts commit 5d4ebaa87329ef226e74e52c80ac1c62e4948987. Not sure where that SHA1 came from (it's not in Linus's tree), the right one is: a0855d24fc22: ("locking/mutex: Complain upon mutex API misuse in IRQ contexts") I've fixed the changelog accordingly. Thanks, Ingo