Message ID | 20230821034637.34630-16-byungchul@sk.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA944EE49A6 for <linux-mm@archiver.kernel.org>; Mon, 21 Aug 2023 03:50:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C1079940012; Sun, 20 Aug 2023 23:49:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BBFD194000C; Sun, 20 Aug 2023 23:49:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9EB09940012; Sun, 20 Aug 2023 23:49:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 8873794000C for <linux-mm@kvack.org>; Sun, 20 Aug 2023 23:49:57 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 6A796160448 for <linux-mm@kvack.org>; Mon, 21 Aug 2023 03:49:57 +0000 (UTC) X-FDA: 81146733234.08.6CB08C9 Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf05.hostedemail.com (Postfix) with ESMTP id 966EB10000A for <linux-mm@kvack.org>; Mon, 21 Aug 2023 03:49:55 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf05.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692589796; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=TTX4thyagi864iCx+gYmgWXMWUBdDsyQcMDwdIGXM0o=; b=rM5tdNF+5Sm7NHaQYA3fUwWnaWK1y0sDSjDfzp7yfUHkLhbH3rSL1vSVexzfeZpkyeKbyI JnUd160lrVqxlayJ3t60tDXqyr++VKcUcomQK4UV7Hq0BkQ0XmLPgJFFg9Is+Y2bmvmhhM wj214M25QTHa61n7KcEupTSXXySShKY= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf05.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692589796; a=rsa-sha256; cv=none; b=SLW95EhxtiIw8qQPkHzgrkr5m4QpmQV53NscKWmrMWVBRmuo1ftVFZcMiR97mOSkZwCNEM 37YDQevkm6y2gs/1YrM/8X5igCdXExP0XbouFp9FJUSDWCfdM7XxxaZFqvPZkfVWO2HgKC uNt3XM6vZg3Cd+2e0/yn+IY0GgODe6g= X-AuditID: a67dfc5b-d6dff70000001748-db-64e2ded6d09c From: Byungchul Park <byungchul@sk.com> To: linux-kernel@vger.kernel.org Cc: kernel_team@skhynix.com, torvalds@linux-foundation.org, damien.lemoal@opensource.wdc.com, linux-ide@vger.kernel.org, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, will@kernel.org, tglx@linutronix.de, rostedt@goodmis.org, joel@joelfernandes.org, sashal@kernel.org, daniel.vetter@ffwll.ch, duyuyang@gmail.com, johannes.berg@intel.com, tj@kernel.org, tytso@mit.edu, willy@infradead.org, david@fromorbit.com, amir73il@gmail.com, gregkh@linuxfoundation.org, kernel-team@lge.com, linux-mm@kvack.org, akpm@linux-foundation.org, mhocko@kernel.org, minchan@kernel.org, hannes@cmpxchg.org, vdavydov.dev@gmail.com, sj@kernel.org, jglisse@redhat.com, dennis@kernel.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, vbabka@suse.cz, ngupta@vflare.org, linux-block@vger.kernel.org, josef@toxicpanda.com, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, jlayton@kernel.org, dan.j.williams@intel.com, hch@infradead.org, djwong@kernel.org, dri-devel@lists.freedesktop.org, rodrigosiqueiramelo@gmail.com, melissa.srw@gmail.com, hamohammed.sa@gmail.com, 42.hyeyoo@gmail.com, chris.p.wilson@intel.com, gwan-gyeong.mun@intel.com, max.byungchul.park@gmail.com, boqun.feng@gmail.com, longman@redhat.com, hdanton@sina.com, her0gyugyu@gmail.com Subject: [RESEND PATCH v10 15/25] locking/lockdep, cpu/hotplus: Use a weaker annotation in AP thread Date: Mon, 21 Aug 2023 12:46:27 +0900 Message-Id: <20230821034637.34630-16-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230821034637.34630-1-byungchul@sk.com> References: <20230821034637.34630-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSf0yMcRzHfb/Pz05nT6fNQ+bHmWWZxLDPzMx/nv6wGRvDH9y6R91UuCOy mXL5FZni6ZyadWXX1R3pyR9UZ6lVQnVop6yau5BW53LccbpQ4Z/PXnu/93799WEJVQO1gNVl HhP1mZp0Na0gFb5oyyr3oFebJLUvhsIrSRD8dpGE0hoHDa57dgSOB7kYRlq3wpvQGIKJzm4C TJILgcUzQMCDtkEETttZGl6/nwM9QT8NHdJlGowVNTS8HI1g6C8uwmCXt8Hza+UYmsLDJJhG aCgxGfHU+YQhbK1mwJqzHLy2WwxEPGugY9BNgfPtSjDf7qeh0dlBQttDL4bX9aU0DDp+U/C8 7SkJrsICCu5+LqdhNGQlwBr0M/CqqQzD/bwp0fmvvyhoL2jCcP5OLYaevgYEjy++wyA73DS0 BMcw1MkSAT8rWxF4r/oYOHclzEBJ7lUEl88Vk9A92U5BXv96mPhRSm/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paHIPYqixGQn4Vf4IgSv7CwNnLngYKEzJRpB5Jo+EZ5MtFKT1hML4zyJ6c5jQNDhECGk1 xwX7mIkUnpTywr2CXkZIe/CaEUy2Y0JNxXKhrGEAC1dH3JRgs5ynBdvIRUbI+NKFha9tbYzw +PI4Kbzrysc7A3ZLNqhEjTpB1K7cFCWJvvRqEseXM4nf3hYyepRFZyAvludCeEPeEDHNNLeU f/nSM8O+3CK+JusDlYEkLMGd9eYrvj2dGczhVLxxonCGSW4xX3XFSE2zlFvLG1KqyX/ShXzV LceMyGsqt92vR9Ms40L54f63ZA6SmNAsC/JVxybEKNWa0CDdkeikWHVi0MG4GBuaehpz8kRu HRrtVDQijkXy2dKoAJdKRikTdEkxjYhnCbmv1P9Hv0omVSmTTojauP3aYxpR14j8WVI+X7ot UoyScYeUR8Ujohgvav+3mPXy06OHvRHkZR+kKJm77K55CfYuqRwN3LqrfPL0eFBwusfiJT0Q eXhBZW/Ye6WvX1lbqmLRvO21beGs6rBPR0TiVuu88JPqsGr7z30a956GkOQt2bn66Jxwu2Jh gMo08qTH2eq9ZuPw+qad+qDk4OvSEKZ+79661QWWzPhTtQ7/dT4ts+SkLlq5ajmh1Sn/AgTl eBkwAwAA X-CFilter-Loop: Reflected X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 966EB10000A X-Stat-Signature: ard44s3agxjgmaswdupdy4ju9nb1zuny X-HE-Tag: 1692589795-358395 X-HE-Meta: U2FsdGVkX18YqDKELsPGckFGlwqp2R+ViS0CqyD/LTjGeOIZsUu9a4IwscWDftoXZjmIufWhC83DYasJsZdHLOSuCfxK+XAlBk33lv1zy8r+l1Rch/EEcbtoyd9N0gZDwwrpVzA6uwE1YIS8mcQmFPZCWjGcweMxzJnrKTMXGYj/xQG2gQAC//YLNtQEmHHyulnC6oeFMAQ1nApxSL8zsEBW5U4O7oZJvhQgh0Wxd0C1kHdV9doPDA3J4vOkaXBjEYV2g++vc2F8NLrkLnlj35ahmo3E+IrJzYCgnhUBKa11rBM+iFZkJzAgOLiHRABK85vnm2iWH6UH/b+JoPe/5uqV0q5xoxwna+F9wPXc66ZaXb8gK6yBDzko4JEBZcUcKFZOEBN7Ia6+LerZtC+JVPr5poivwUEsc8x2JhRwQC9ZUyQHM+Y7Uvi+jhVu6HZInuET3UF/678jTNfNsJKzRHG5YYZWI5RmFq/mjrrVskzjzWLCmnCx7InMfbbqTyVY3XwgtnllMOoeUF7UnYFTF42tQnLNAl1upHfEnZj6dklzo/ksCZVOdzQSiNUgNk5eWLngUfjA9kih5kRD8ls4Kb7ALS9YPVrB+KvlQERdEKNtQknB/jplROjiPyHdEvcUCSbNf3zgjk6IaJP1iZTXkm1RB2BU+S27vZoF+08ZybWyL7WwM+RLOZQGVbvvKgh4OqSQIACyycdwJAu4tkGLhGlBke5JMvI0HQf9a6Mji8Fi8nukA5Ukl4Gkau8j6De6TcvNrYk73sQ9+sXJ9h+49sMN+cJDT1EKkSAx34p35ow2HUl+jLGdIW4mTMTZOX/vZFk0rlXxHK/UMG71QMiHUtM7oL8eX7y3DCEw3BzhQ6zIfGHwW4zaNr1kNWOI953tnRECE7k7Q7gnV3gC8ss8G6MzHtswL66XX1NsF5zjQQxxgdG6CW4bKt370AFbzkMy63Iqh8UlOuv40Jg2jO0 eH23zePa /oNylBup9yi2rnhhZ3vLsNy9QH3IPK2yTerLn1dsQUkAOv/d8im0Fi5oXKmS5wrGbEHka X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
DEPT(Dependency Tracker)
|
expand
|
diff --git a/kernel/cpu.c b/kernel/cpu.c index f4a2c5845bcb..19076f798b34 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -356,7 +356,7 @@ int lockdep_is_cpus_held(void) static void lockdep_acquire_cpus_lock(void) { - rwsem_acquire(&cpu_hotplug_lock.dep_map, 0, 0, _THIS_IP_); + rwsem_acquire(&cpu_hotplug_lock.dep_map, 0, 1, _THIS_IP_); } static void lockdep_release_cpus_lock(void)
cb92173d1f0 ("locking/lockdep, cpu/hotplug: Annotate AP thread") was introduced to make lockdep_assert_cpus_held() work in AP thread. However, the annotation is too strong for that purpose. We don't have to use more than try lock annotation for that. Furthermore, now that Dept was introduced, false positive alarms was reported by that. Replaced it with try lock annotation. Signed-off-by: Byungchul Park <byungchul@sk.com> --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)