Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp407608yba; Wed, 24 Apr 2019 03:26:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYItutz6hdzSrasIEVBsLhO9Y0QYfvCucoebH1YrWQ025gFZdWfelHKOOyM89pQXFV7gO2 X-Received: by 2002:a17:902:7d90:: with SMTP id a16mr28575066plm.122.1556101596654; Wed, 24 Apr 2019 03:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556101596; cv=none; d=google.com; s=arc-20160816; b=tagE77wGZxLnNo63zbZ2L1pOY4rRyLz4q40oQTkavzM8X3Wr/q3dvvr9yKL2Fk/x7W s6GpSdN7xKhpHplUqnHyiZCyEHYOsqKmhaBAVYTLyj8NlI6vR1pMuAZq81B5lACHRcY4 1qq6R1GTYvmHPAjW1l1nykeJxkZ/xYDW2SRAyOLr9O4qo/LjOAfGFlkZebhVSTS1RpOU r3+a6gDoP+VLGBVwQc6k5PqxgI2UP6c8Mwn4j0+vC1qZUORxXWqWeWgiW80iMBwurExA IFJYBu9KFs4M+FdY1UzFrSI9dvOX6za5DW36OLA4R8xg6dMQI+PhzX1yU4NxSIy7QT6U DpWw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0kfhy/vws18rZpDHDaPIfYHeGOwGyfC2bZ5+sCfkbgA=; b=H6/xu7FeNfuzggFinwJFXQSgZ88LqS6in5pWYxv8x9JmIpYGZ1NVFfKwYdlYb1N9tb W9sSRXt0gKtAjTMm1D07cIFgQ58y+ivhPvPYytPQFryeq0sGn7aDmiTP2SA4RwUPBTvK dRcJp4dRG0lmivHycTq6GeRC9BmmDysg5oEa+GH6A4kKPZy3yZAYWYi7+fVUkHrhAUdC 5aqslR0A5I7UM1JCTCj8l6ouk9URKMLysd1R/dK/ncS28yU17NLk9WKxwVHdBnEsqoP/ YvTAMBTN3OdRLzdXkdTh2O88GrDaaLr1WkP4AIMhP5WrZBaLu0G5QKn8+3MAgAjIso3K uNHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BUcOORTh; 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 k12si17164555pgi.107.2019.04.24.03.26.20; Wed, 24 Apr 2019 03:26:36 -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=BUcOORTh; 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 S1729186AbfDXKUr (ORCPT + 99 others); Wed, 24 Apr 2019 06:20:47 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:35526 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729151AbfDXKUq (ORCPT ); Wed, 24 Apr 2019 06:20:46 -0400 Received: by mail-pl1-f196.google.com with SMTP id w24so9079405plp.2 for ; Wed, 24 Apr 2019 03:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0kfhy/vws18rZpDHDaPIfYHeGOwGyfC2bZ5+sCfkbgA=; b=BUcOORThkOGGXmQNzvAJJclaIUYGNaunputWTOxAf+59/+r0e3MFeC84GleoUtDi9D FA/k0jtxETYfPTXGndaRDCPNsd263w8qRj4lEXLbJK+4ZLBC1XlAjfMhPirY55cyflck uzXT0xnmiUddawjHMo7VmrLlKjQz90hRjSwSeykk0vrByyV/FHvp3qlqMhftYFZX06vW 00dSm1EJrTkbvhvhI/euq7JjF1+c3Heytc98xXdtQPFWkxYWCXyJ+fCOscMVu8orgm+7 wF1+MvmzYmJmjrvXrH6Mw/3J590QrKX0Vj9O55Vu/nMMJgsquaTsYtR25ohaZZH2oete 2Ixw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0kfhy/vws18rZpDHDaPIfYHeGOwGyfC2bZ5+sCfkbgA=; b=kRVjwMYK1xWkFElQDJJ7IoKt8DzHUBrhDgEVYFF6UsTqX5iJUfkev4SgmUjMzeAfP1 fOgrIdA9V6K39ooufXlAy/AATvbUu061xlraFy+DdB3nNTu/0xOtDBcsm5/LufYoijh6 KymDCL8Td7H7NmhxZtcOm24tsJarU2/wXyq87Djj1krBeyFCUnQ3eJffprBINaRmp3xV 2ANnBeuHQ+F5EnPo+LwGA/G4blmx2qqltNENTxyGPS/JNbRdguoNoQlMYlUwnuxIItVU GGayHpSzVuh3AFGDkHhd0DtWRI+6fmRk+COg61EyyR601beTbpGkT9qFHVzUnSBu1vTW JJ1Q== X-Gm-Message-State: APjAAAW/mZwUhIyt62L4ujWnJyCfPDvPtIMO1l5cRTdV50TAaU/JgqaH TZgoK/eSNMwnFudmok2AugM= X-Received: by 2002:a17:902:581:: with SMTP id f1mr31880770plf.304.1556101246467; Wed, 24 Apr 2019 03:20:46 -0700 (PDT) Received: from localhost.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id v19sm25051604pfn.62.2019.04.24.03.20.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 03:20:46 -0700 (PDT) From: Yuyang Du To: peterz@infradead.org, will.deacon@arm.com, mingo@kernel.org Cc: bvanassche@acm.org, ming.lei@redhat.com, frederic@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, Yuyang Du Subject: [PATCH 06/28] locking/lockdep: Update obsolete struct field description Date: Wed, 24 Apr 2019 18:19:12 +0800 Message-Id: <20190424101934.51535-7-duyuyang@gmail.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) In-Reply-To: <20190424101934.51535-1-duyuyang@gmail.com> References: <20190424101934.51535-1-duyuyang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The lock_chain struct definition has outdated comment, update it and add struct member description. Signed-off-by: Yuyang Du --- include/linux/lockdep.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 6e2377e..851d44f 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h @@ -203,11 +203,17 @@ struct lock_list { struct lock_list *parent; }; -/* - * We record lock dependency chains, so that we can cache them: +/** + * struct lock_chain - lock dependency chain record + * + * @irq_context: the same as irq_context in held_lock below + * @depth: the number of held locks in this chain + * @base: the index in chain_hlocks for this chain + * @entry: the collided lock chains in lock_chain hash list + * @chain_key: the hash key of this lock_chain */ struct lock_chain { - /* see BUILD_BUG_ON()s in lookup_chain_cache() */ + /* see BUILD_BUG_ON()s in add_chain_cache() */ unsigned int irq_context : 2, depth : 6, base : 24; -- 1.8.3.1