Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1973132yba; Thu, 25 Apr 2019 08:37:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSz1khcGoma2ej7AVeJsgRPrLagpQ6tUP7NZqEZg1Hib+FlfyhoQWTVyG0yy3PMe7FDrtk X-Received: by 2002:a17:902:e08a:: with SMTP id cb10mr10658235plb.160.1556206666894; Thu, 25 Apr 2019 08:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556206666; cv=none; d=google.com; s=arc-20160816; b=YkLrOdDg7qGO5UGc/1/e52fAruDbkOj2yTZ5pIeIgBp0zmLicQpY4FYSQdfymwAjQR eH8Xn/K6W7cMYRdwL8xxX+MWocygszOTM4gqSnoIQCVxyhJg7DfUpHxmM22cBcPENL1v rnhXHpXtlhjS6Yl0G5U6FtOxm2l9Q6s15UewyGWZ6lxGinp7v0dZQlT3FgJpmM3ipUeX 88GgaLT5E+r4BQ7TRL7M1jiVx9IK3eV/eLTnRKrZLBCi+WSrUc04aTKmgrlWzmwXAcF/ c/vQxZVyUjhBlfP5h6/X58iI90rs5qztvtOzjIUc6jn/+L3KjfmhMD8CXYUOyrI0zrGq lgBw== 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=HLbIk0s5M1du/mMNoAlatmEicBx7uPR77M+SYxINoG8=; b=LYN+ttWdvctageic4/73akZNHmfWIxnp2IvmcBmRSUhEPyffNzEZ34ljuQ32Np+u3f zz3cTq4CMCOlvCIAXUJjcDqYWQUX6WoxW29eQddVUZtDsSKVyTumaytaPrLhqJQkLS91 Z0CHj6cFYqQOQaQPSaWhi/At0qqbjo0uvhfvDAsscBeBqVqPC/mumqJKxuSa2dlsSWSl Zf6lCHcVUENQLpLych8ZcRPLaicgHoPZDJeEhe2VsiGml3pG5aEOoUxV04OUNnX9a2bX O69FZaxy0hm6le5QJadTDa+mqlE9nME4luMty7Bkt1gd9uYTmnncOw4uroJqf2P9BRt8 rC2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=sP5RmOvO; 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 d30si20727905pla.404.2019.04.25.08.37.29; Thu, 25 Apr 2019 08:37:46 -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=sP5RmOvO; 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 S1729390AbfDYOBR (ORCPT + 99 others); Thu, 25 Apr 2019 10:01:17 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:47002 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726071AbfDYOBR (ORCPT ); Thu, 25 Apr 2019 10:01:17 -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=HLbIk0s5M1du/mMNoAlatmEicBx7uPR77M+SYxINoG8=; b=sP5RmOvOcvvGGRHwWpF2YIktL C/EjF6AMsJnW5ybyAIwEi6e5hHRlRMNQ3lRplb9qGJJFyvkvnrpB37IXNGKOFn+wy7gkVnH+t59s0 zGSKR+tUyS3OgSENYuAVXEVlkbWhZkWzjtNA+9+qZau47KxaQhn2KBZcW3fNow1kiDBDPxZY6M2qU pf69qRoX/qpjFsl0rqP+wPAqi44slpLsV/1S35rGNPR5QLvWs0bOp5aLKZcFV3jZ9ffrPIuC7ANYy 2jpctX2v5OD/JJiKf0BvCroFiOXnckGewaWxRsHa24CIVGlzWXSU5cDijR85kMBf82YkjSsSnoX/G 73VhYBMCA==; 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 1hJew4-0003A0-Io; Thu, 25 Apr 2019 14:01:12 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DE91E29C42EE0; Thu, 25 Apr 2019 16:01:10 +0200 (CEST) Date: Thu, 25 Apr 2019 16:01:10 +0200 From: Peter Zijlstra To: Yuyang Du Cc: will.deacon@arm.com, mingo@kernel.org, bvanassche@acm.org, ming.lei@redhat.com, frederic@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/28] locking/lockdep: Add description and explanation in lockdep design doc Message-ID: <20190425140110.GS12232@hirez.programming.kicks-ass.net> References: <20190424101934.51535-1-duyuyang@gmail.com> <20190424101934.51535-3-duyuyang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190424101934.51535-3-duyuyang@gmail.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 Wed, Apr 24, 2019 at 06:19:08PM +0800, Yuyang Du wrote: > +Unlike a lock instance, a lock-class itself never goes away: when a > +lock-class's instance is used for the first time after bootup the class gets > +registered, and all (subsequent) instances of that lock-class will be mapped > +to the lock-class. That's not entirely accurate anymore. Bart van Assche recently added lockdep_{,un}register_key().