Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp264837yba; Thu, 25 Apr 2019 22:54:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqygUMQJJD1AxNB3Vb7SmI+j4hxWJUfoqv4BnRyUqS54ayESuYMu8ozBRGVf5b8Ee3MKCwuO X-Received: by 2002:a65:4481:: with SMTP id l1mr41332957pgq.66.1556258064198; Thu, 25 Apr 2019 22:54:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556258064; cv=none; d=google.com; s=arc-20160816; b=u9HXU+K4FbIZfvZjonjZGEqcmKrBHMnUGpPMI3o+Y5DZGOz32snY18DROEv9RJ2CV9 EstOlef+RK4ua/jnM6yRkHUAC5OvLF4+pktsp8kLrKkTZdwHScprfn00sea8rbNXeXS8 h5vPEsdZYKoB462f8qU60RAS7DQO+Rwd6bFShzbRA6xaJ7TPXsjd5mVs9OpbbejpOglg V2+N9qi+bZ2H00gz0ej6WpnugCyBTBnN58YltW0dFqG9jhT/HtzCC/7jFyUlKs88W7Yh 0VlESuWMKW63kUp4KvnMqJr7mdEDCRJk8LL6ZQUPi4ED8crBCx3sy0DujJoTP+47MyCS dJnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ALLpMjxVV7s2gAejGFkSCvqnEKGQlvw6lP7jI9b0o+U=; b=nryJtGohyAfzSwnXzH05YtKAIMYzdjm+pjZKyin9pWwKPAwmR1nyow/RSvRpTeZkrv MZj+SWzIhFRrWFiOhyceZ6teczsqFyyqCiGUe9+TGIV/kcRtc5tNce3nk6qYkXqWWoEJ YOnmTLtFAIuCRtws0ha+NhIszXMJWj482PcbGKsteh8JMxsCsw7WBxVjdQ5Yxw3IOHeP PyYNbRHYitYhWhXEWXzQRcNO2vdNDyjjsXtuHY32S6D13cjO47fQUQ3Nzkyec1nIks8l IWjijekYfITanbT8AWmckHR4wXEhIStc7TZwkcwnl+K29FeEJ3OTFmDh3TvmsBYGbQeI 68xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qag9KjXW; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u13si23838909pgn.592.2019.04.25.22.54.09; Thu, 25 Apr 2019 22:54:24 -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=pass header.i=@gmail.com header.s=20161025 header.b=qag9KjXW; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726116AbfDZFl6 (ORCPT + 99 others); Fri, 26 Apr 2019 01:41:58 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:36642 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725800AbfDZFl5 (ORCPT ); Fri, 26 Apr 2019 01:41:57 -0400 Received: by mail-qt1-f196.google.com with SMTP id c35so2873713qtk.3 for ; Thu, 25 Apr 2019 22:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ALLpMjxVV7s2gAejGFkSCvqnEKGQlvw6lP7jI9b0o+U=; b=qag9KjXWknF7uuEdv6ozbZ5nBt5wL6UuUSEwd4Ebrpeprk9cU/WyJtP9b50s2ET2qc cdy1GvZHpltDE4jVPxqSUEXf1crxK4pPF1eFc+25FXrItwxgWw/Xf8Md8cY2q6QclRtm Z7eFivTNbWIZSxQndD9/dXAgNNygLVeFpjr1otWRnU/tWBdy4EqLb7iolCPMk06oMkHf p5QM0ntv0Pvr5cqpJ9LXS9VVEqMyGiNhnAyO2Dm6rRfBdkXk8hPc7qL8/LU0GZmP189p x2c0uf+EoBIQCCCUFrREhHlDRdPKQHTNZMTnQqf4h1JpHW9MJJsBapPJXvcKwThfOHDk D8iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ALLpMjxVV7s2gAejGFkSCvqnEKGQlvw6lP7jI9b0o+U=; b=c4XQb1n46OpGtE89OZPg0AKeKNIksUmJDJ+Lf5kvvgCn1+KGI3bmxXkFv5t6ELOcvi 8/DREHaSX4jw1S/N1DTqtQ9Fq2Dh/QxN5Y7FVZ1R48BSngNKgH6EbHQjEoVGoEWSKoT3 DZQnScPnl8HZClGy19yG+V3IJPQ71eJKGYesmSXH6eQGqh9L28/Kkpg0zSvax+DSoGwq dLSgWcJyMAffqDi6VVOBysQKVfgED5IXIb1ArNt1pMaFyeXU6c87ruw6GqNTT+my7SOg nRr3LZNjgYFmIWDVJnxvLHKk0x5d0pL2doDa0jJFn+otyupL+YJCQ1a380mxtOhBorx1 6WWA== X-Gm-Message-State: APjAAAWTaRPpszoZOqW/rl3iAmlugHokTzLr8WxNzmppsw2H6odKiW5+ mGMAIeSjEY4Jua/3P5lRopD0XFAbUXuLh+8nEqA= X-Received: by 2002:a0c:ae04:: with SMTP id y4mr34693540qvc.49.1556257317039; Thu, 25 Apr 2019 22:41:57 -0700 (PDT) MIME-Version: 1.0 References: <20190424101934.51535-1-duyuyang@gmail.com> <20190424101934.51535-3-duyuyang@gmail.com> <20190425140110.GS12232@hirez.programming.kicks-ass.net> In-Reply-To: <20190425140110.GS12232@hirez.programming.kicks-ass.net> From: Yuyang Du Date: Fri, 26 Apr 2019 13:41:45 +0800 Message-ID: Subject: Re: [PATCH 02/28] locking/lockdep: Add description and explanation in lockdep design doc To: Peter Zijlstra Cc: will.deacon@arm.com, Ingo Molnar , Bart Van Assche , ming.lei@redhat.com, Frederic Weisbecker , tglx@linutronix.de, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you very much for review. You mean class can go away? Before Bart's addition, it can go away. Right? I think maybe the original point of "never go away" in that context did not intend to talk about a class's real disappearance. Anyway, the points should be made comprehensive. You want me to resend the patch or you modify it? On Thu, 25 Apr 2019 at 22:01, Peter Zijlstra wrote: > > 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().