Received: by 10.192.165.148 with SMTP id m20csp2929904imm; Sun, 22 Apr 2018 19:35:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx499Ya65PeeOciJvZx/efugpazjfJvWuTcidDhJuO7iaJn72dawDKuF1te29jAbBxBNNkyu2 X-Received: by 10.99.175.29 with SMTP id w29mr15943305pge.247.1524450952755; Sun, 22 Apr 2018 19:35:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524450952; cv=none; d=google.com; s=arc-20160816; b=SS/rSzD5tBpXzhgokM5aSN1K/cWu8tCVDuQpan2f0mBMy61C9oyw0+N4iUW+A8qkwV OeM39UUKTOn1GAhuChXpKU24GzKhFLqhctNOq4QpYjTxm5SBqmMWOi8FgFWUQ6ua6WEx ROLVoxwUSWU3RNs/nlHAqGiO5Ol+Rze8Wb1tiblDNzPJLaNU4NaH/u7+zjVphBeKE8AH cAEI1v1iL2fntOYcyAQz3GySPLTk41dF99zEzVgHD3/khFYiRT9sAPQRpG/9o+pMR4LB /ZK0PVLXwuo7i4ivfx0awe9tOwVezdV2kMMYWJrZaThVngbQnxDy2Il6roPoWbwA0AvG jbUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=zZuStSX66/IauADWdtb/g+1quoZEhFJuexYuosUNAWg=; b=M1OSXMq27C+ZYCVBy5dqFocU/Pq6uUUEzEJCEQhBMlCrVPV8O4kFakPS+pzOwSzI9B IDN9C+YU5/Wz79YPEwtSrAdKDbJYYUADt1tP5eHrrylx8n/6rcnholScIC7V/lgfsqeJ D/vI7vbwLzZiaEFdwLpSKzSBppy8wjRR5I4OXwkRQOdOuR/ng1ZMHdBko9ujPOFb86Ha c5TF3XLsuOvyXIqFT1bOax1o+7DvvDvcQLy8sM5OK0txjBGggre4E/HMFwvT2M8oSOXi xGiZkmm8MZCz4dXmHBfEIX/5P+mMEXXrr0c8akqw3Pge9YCQJnashLn6OkZrd+Rh5EZA K5/Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e92-v6si10783686pld.16.2018.04.22.19.35.38; Sun, 22 Apr 2018 19:35:52 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754029AbeDWCbm (ORCPT + 99 others); Sun, 22 Apr 2018 22:31:42 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:59834 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753987AbeDWCbZ (ORCPT ); Sun, 22 Apr 2018 22:31:25 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3N2T2L5054557 for ; Sun, 22 Apr 2018 22:31:24 -0400 Received: from e11.ny.us.ibm.com (e11.ny.us.ibm.com [129.33.205.201]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hh3w5csk7-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Sun, 22 Apr 2018 22:31:24 -0400 Received: from localhost by e11.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 22 Apr 2018 22:31:23 -0400 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e11.ny.us.ibm.com (146.89.104.198) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sun, 22 Apr 2018 22:31:17 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3N2VETS53805308; Mon, 23 Apr 2018 02:31:17 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B9A25B2046; Sun, 22 Apr 2018 23:33:19 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.85.149.45]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 7BED4B2052; Sun, 22 Apr 2018 23:33:19 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id D23F416C9201; Sun, 22 Apr 2018 19:32:28 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: mingo@kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel.opensrc@gmail.com, Boqun Feng , "Paul E. McKenney" Subject: [PATCH tip/core/rcu 22/22] rcu: Use the proper lockdep annotation in dump_blkd_tasks() Date: Sun, 22 Apr 2018 19:32:27 -0700 X-Mailer: git-send-email 2.5.2 In-Reply-To: <20180423023150.GA21533@linux.vnet.ibm.com> References: <20180423023150.GA21533@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18042302-2213-0000-0000-0000029781B3 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008903; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000257; SDB=6.01021888; UDB=6.00521536; IPR=6.00801123; MB=3.00020718; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-23 02:31:21 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18042302-2214-0000-0000-000059DC334D Message-Id: <1524450747-22778-22-git-send-email-paulmck@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-23_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804230025 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Boqun Feng Sparse reported this: | kernel/rcu/tree_plugin.h:814:9: warning: incorrect type in argument 1 (different modifiers) | kernel/rcu/tree_plugin.h:814:9: expected struct lockdep_map const *lock | kernel/rcu/tree_plugin.h:814:9: got struct lockdep_map [noderef] * This is caused by using vanilla lockdep annotations on rcu_node::lock, and that requires accessing ->lock of rcu_node directly. However we need to keep rcu_node::lock __private to avoid breaking its extra ordering guarantee. And we have a dedicated lockdep annotation for rcu_node::lock, so use it. Signed-off-by: Boqun Feng Signed-off-by: Paul E. McKenney --- kernel/rcu/tree_plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index 8014a09a5c9b..52bd92acbe6b 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h @@ -855,7 +855,7 @@ static void dump_blkd_tasks(struct rcu_node *rnp, int ncheck) int i; struct list_head *lhp; - lockdep_assert_held(&rnp->lock); + raw_lockdep_assert_held_rcu_node(rnp); pr_info("%s: grp: %d-%d level: %d ->qamask %#lx ->gp_tasks %p ->boost_tasks %p ->exp_tasks %p &->blkd_tasks: %p offset: %u\n", __func__, rnp->grplo, rnp->grphi, rnp->level, rnp->qsmask, rnp->gp_tasks, rnp->boost_tasks, rnp->exp_tasks, &rnp->blkd_tasks, (unsigned int)offsetof(typeof(*rnp), blkd_tasks)); pr_cont("\t->blkd_tasks"); i = 0; -- 2.5.2