Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1626415imu; Wed, 12 Dec 2018 01:11:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xk1azKTkSVa2eFz8dqihx2f1sUGcs4BOCqBtSyubpRhVk5hdl5uXxpWSpToFU4baNrgCAt X-Received: by 2002:a63:a002:: with SMTP id r2mr17298206pge.212.1544605903474; Wed, 12 Dec 2018 01:11:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544605903; cv=none; d=google.com; s=arc-20160816; b=bFIUbBcbdIyaGcq0i43+u5m34DxnUCD8RIbtl4lux7pMpvouWS7/CN0jERhWd/KZfh kvSucZ2Jrxgo0Ouln/NgpScREfZLQcQ1Vn17TN9JLiSJ+IRlDnUm+jhiWildrEjjWgMJ 45HAmVCwyQLRgSvTri1xLp0WbzgbrLyjjlboO4QzOXigKC8RFEwScpNysUwlbDVQcD4b 8M2s0GVzdVDfh8fvfJkhLoXa+aDzDXBhpbZ05MzJYUGnOfdFSMCpmWv/xoIVb2vXAl8M 3T2X+14rrDNVjGa0wA5hx8vMP556biyLPaksQ9phhDiPWtAurNRoESch4CROfPn/aJ37 eB9A== 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=1K/gSdyRUUVriiomPu/vAxOnqsHCvi3CfN9yXMG9g20=; b=1FS/o1vFNBjAolIdAbw/FfPj7UYWJHn14DzCE6bJttoquMjYPcvQVzINsRJkN2D81I fdet1o1z5FsHIgCXNvBoJeC+kX+9joa0LarZ3Of9Lg8crcFrVJbGLxwudHsrxgrcsBnF 3hAEkKpduXZp9JrolkjMHwlCReOQeEWQh1tzdNqs/trgjQvjoqHtn9Rx7XPJ7F9RQYkY M4nFjsmH8Fh8TcA1S+ZaXTZV0e+esFSrwW2YCODIfkNGyUc/DpUFaqKCTzGK7DUVoVrT h5kkuGTaXJAYq9yJw14xDiqH502d8FPsZeF5V9OJGlFNSW1BY4rn+81MY41HIrAQaM+x 6e0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=kFH2SLNl; 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 bj2si13900653plb.27.2018.12.12.01.11.27; Wed, 12 Dec 2018 01:11:43 -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=@infradead.org header.s=merlin.20170209 header.b=kFH2SLNl; 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 S1726794AbeLLJJG (ORCPT + 99 others); Wed, 12 Dec 2018 04:09:06 -0500 Received: from merlin.infradead.org ([205.233.59.134]:55962 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbeLLJJG (ORCPT ); Wed, 12 Dec 2018 04:09:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=1K/gSdyRUUVriiomPu/vAxOnqsHCvi3CfN9yXMG9g20=; b=kFH2SLNl5YsaGqKzDdq6DH0/A 9CGxqsegjcfoihBg4wkD9lpTVEBKp5+CyZC6YXAQJC6BFfXhuHDXi6rsHLGm0PN1sDM/on7GNbOEa m8sa1J3TNYZIgBT5+ZjdIlp0wtKLIFTohEizeaheB/JEFmQvCQsborkE+WidHyTowhQfifdmYQwop 8oDg2mxB4SDUMcB9WTMLLFAOciIhcqKce5gq6dJj4g52K7csy3jW9wCBZUU7ZgGThyxLE2ZlBMJHL T4+gFZ75MNT8qsngG28miaMOUMqiKpRumE91HZ4acBnsi+fehRx6dpESJ5AOLRuNm8Czti+Tg2BtT b1CMTIzaQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gX0Vq-0006Up-Rw; Wed, 12 Dec 2018 09:09:03 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AE6BB2075BF39; Wed, 12 Dec 2018 10:09:01 +0100 (CET) Date: Wed, 12 Dec 2018 10:09:01 +0100 From: Peter Zijlstra To: Derek Basehore Cc: mingo@redhat.com, will.deacon@arm.com, linux-kernel@vger.kernel.org Subject: Re: RFC [PATCH 1/1] locking/lockdep: Fix nest lock warning on unlock Message-ID: <20181212090901.GV5289@hirez.programming.kicks-ass.net> References: <20181212022506.171936-1-dbasehore@chromium.org> <20181212022506.171936-2-dbasehore@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181212022506.171936-2-dbasehore@chromium.org> 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, Dec 11, 2018 at 06:25:06PM -0800, Derek Basehore wrote: > The function __lock_acquire checks that the nest lock is held passed > in as an argument. The issue with this is that __lock_acquire is used > for internal bookkeeping on lock_release. This produces a false > positive lockdep warning on unlock. Since you explicitly don't need to > hold the nest lock on unlock, this is an issue. Who is triggering this?