Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4384873ybi; Mon, 3 Jun 2019 09:59:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJzAkEh27laXON5ZhCm6lyVYXyzofjviIO/JeMVV2TNFNc/jfc36Ogknu9FQm2Y+B0Zsau X-Received: by 2002:a17:902:a513:: with SMTP id s19mr27063186plq.261.1559581179998; Mon, 03 Jun 2019 09:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559581179; cv=none; d=google.com; s=arc-20160816; b=oXo4g88KJGcas2N4Z8KeHK3OzPh5CLjSZbl+OAXeKvkLsSdD+9wZv3oxThBhkRllu3 E+xtCk4MUWdiduuKQdO2EE5N9QPx31UcTiZd/OAivDLRZ25Hc1Px/56wLJpfRDQ5E9RQ OhDxvmBVCKREmcSLuP19lxbqLt/xxV67Zb2NaAmaeQNDYDXfHWzhXJiX1SY8UK2KKEcm WD3G2JM2YB9xiJqAFhEuACf9n8Fj766ZdTaWgWkWoKct2uUy/8F5BofbvRns63RUy+QS wKlVnY8gi5DUruTq8SbYSR5BQOsIhMl2izGApAlGUD6oly7JKMHLKu6LYWzvS9XTUrQX lYPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=HY6f/+mZ5Od0OcAK8g1VxqUNqDW/sB+3kAXaViohMBY=; b=MiKXaMSYXVZTsTu0AKEY7oPFbSbqBlYUYUNpsS44gZhgAZb9Bt6vp+Op28g3vKnRVs DxZfVwRrqgIrMIEJaa3BBp3CZF1ITaecAUgx5nF+qbP/kLQDmj0sZWY8uutUjit2HD6z 16osSA7wRbtZYn79M7ZPA4MHbyPe3POWcGv2JYQngsYQPRJy9By1hXoUereDLo2tCfIo qbqySsNALYRZ/Bhx7GHYVe4+8dPfRZvalk+cPpMJTsXZQh7u3P5o9MoD3q5fXh31ErD0 JeKDhBvlFEDDRfSK4oen6ACaSyrQj6rGUt61oGaqxUVllgNrUH4J5/ctLEfGmiyPn9jT QpyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019051801 header.b="Tv/nvtmF"; 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=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc10si12347826plb.43.2019.06.03.09.59.23; Mon, 03 Jun 2019 09:59:39 -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=@zytor.com header.s=2019051801 header.b="Tv/nvtmF"; 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=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728402AbfFCNKN (ORCPT + 99 others); Mon, 3 Jun 2019 09:10:13 -0400 Received: from terminus.zytor.com ([198.137.202.136]:60511 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726516AbfFCNKM (ORCPT ); Mon, 3 Jun 2019 09:10:12 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x53DA1mR605130 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 3 Jun 2019 06:10:01 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x53DA1mR605130 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019051801; t=1559567402; bh=HY6f/+mZ5Od0OcAK8g1VxqUNqDW/sB+3kAXaViohMBY=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=Tv/nvtmFGB75Zlg6s+sILG6Xs/9BYjYnxv2fisD5thc8j5OopdoUtPW+ORLl4wtmL XWxsPCX2WgoOyPEUa8Z2qWUdgzGKbP8p/UtiUCnbi+zsuhX8EWBIxzH4uLjDeeOSEk /tzlg6hnfkHlQswofyWotw2XZK1iUP/hlh+w9zK1UYY39+HmRsiv74Z/i5oUPZVjnZ ncSCdWCZVrM4Fnn2bZge8riY8YP9VACaiTrGdY95xbwgDDX8Jux2na573274tssCRE 9D/rSnT1fRl2q/uBawbZXtgzDTntMh61nanffW8TBizyv+B2l3L7B6d1C/gpE8e4/u /a5Xs0HT31JCw== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x53D9xnh605127; Mon, 3 Jun 2019 06:09:59 -0700 Date: Mon, 3 Jun 2019 06:09:59 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Yuyang Du Message-ID: Cc: torvalds@linux-foundation.org, duyuyang@gmail.com, linux-kernel@vger.kernel.org, peterz@infradead.org, tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com Reply-To: tglx@linutronix.de, peterz@infradead.org, duyuyang@gmail.com, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, hpa@zytor.com, mingo@kernel.org In-Reply-To: <20190506081939.74287-7-duyuyang@gmail.com> References: <20190506081939.74287-7-duyuyang@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] locking/lockdep: Update obsolete struct field description Git-Commit-ID: d16dbd1b8a29bb9f8aca2c2f3bd1a0d2b7621126 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, FREEMAIL_FORGED_REPLYTO autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: d16dbd1b8a29bb9f8aca2c2f3bd1a0d2b7621126 Gitweb: https://git.kernel.org/tip/d16dbd1b8a29bb9f8aca2c2f3bd1a0d2b7621126 Author: Yuyang Du AuthorDate: Mon, 6 May 2019 16:19:22 +0800 Committer: Ingo Molnar CommitDate: Mon, 3 Jun 2019 11:55:41 +0200 locking/lockdep: Update obsolete struct field description The lock_chain struct definition has outdated comment, update it and add struct member description. Signed-off-by: Yuyang Du Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: bvanassche@acm.org Cc: frederic@kernel.org Cc: ming.lei@redhat.com Cc: will.deacon@arm.com Link: https://lkml.kernel.org/r/20190506081939.74287-7-duyuyang@gmail.com Signed-off-by: Ingo Molnar --- 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 6e2377e6c1d6..851d44fa5457 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;