Message ID | 20230626115700.13873-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 69034EB64DC for <linux-mm@archiver.kernel.org>; Mon, 26 Jun 2023 11:59:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9F85C8E0005; Mon, 26 Jun 2023 07:58:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 977148E0008; Mon, 26 Jun 2023 07:58:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5E10E8E0005; Mon, 26 Jun 2023 07:58:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 442048E0006 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 07:58:53 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id BC71FC06EF for <linux-mm@kvack.org>; Mon, 26 Jun 2023 11:58:52 +0000 (UTC) X-FDA: 80944752504.14.100BC92 Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf06.hostedemail.com (Postfix) with ESMTP id B4AE0180009 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 11:58:50 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=none; spf=pass (imf06.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1687780731; 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=Qn6JTi9qI4KdXE4hVcFEyI4pRFrskKFEq7qNrOJ8tXg=; b=mk1y7n4NeS3P9kF2Z/6ZUdkvsZReAnj9Jm924ZxgWmzbsCpikhP2ryvzTEiwK2MYO6XIy0 DWX1XPlTYIL3Os5rBBruPyvFyjkBFA+LaSN24pDPqMbhndjp+Obq2LS1Ly0tBWzoikxPZ/ H7ohppvRGlDRl6fe10TjuN9sQH5Zz6c= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687780731; a=rsa-sha256; cv=none; b=JQdBlNiV2WeTPVBZsjtScY7jDIN89GQnb3xjaJr7eQjlSv8OlOpo0Ayo9BCpdX5Iq3QzxA tFw+Q2W0AzB0cuLBigseS/zbsFKGqfZTwvu6tn/ZI3X5VgC45kqppotdgghLQJzqSNAdP2 pREK5d5ORlQaNxdeJYTS66+9qPpMPew= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none; spf=pass (imf06.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none X-AuditID: a67dfc5b-d85ff70000001748-8d-64997d6d8ce5 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, paolo.valente@linaro.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: [PATCH v10 15/25] locking/lockdep, cpu/hotplus: Use a weaker annotation in AP thread Date: Mon, 26 Jun 2023 20:56:50 +0900 Message-Id: <20230626115700.13873-16-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230626115700.13873-1-byungchul@sk.com> References: <20230626115700.13873-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSbUxTZxTH9zz33ueWaslNJXp1Zm51RoOK1ag5RiKaLPFmyZJlhC+yRRt6 lUaoWCyKhqUqGiigokIVO4ViagOdYOGDAlVW5G2ooDSsw4pCDAgUcbhWK+1m68uXk1/O/5zf +XIklPwOs0ii0R4QdVpVhoJIaenU3KrVmXkX1UrbmzgoLVaC/98CGsx1dgJ912sR2BuPYhhv 3w5/BXwIZu/3UmAq60NQNfyEgsaOIQRO2zEC/c9jwe2fJtBdVkTgeHUdgYeTIQze8rMYah0/ QM8ZC4bW4BgNpnECl0zHcaS8wBC01rBgNSyDEVsFC6HhtdA9NMCAc3AlXLzsJdDi7Kah4+YI hv4mM4Eh+/8M9HR00dBXWsLA7y8tBCYDVgqs/mkWHrVWYqjPj4gmQk4MJ1//x0BnSWuErt7A 4P67GcHtgmcYHPYBAm1+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QFdbBw09hWYG/h2vIDA6aaPA5vexcN9pxdBgCthezzgwHH/7iYF2szNA VZcx9D26gaAl7ykGe30/Abd/DEOjvYiCD9WtCIZPvWEh9+QUC+ePnUJQkHuOhrsf2xkweeJg +r2FbIyX3GM+SjI1HpYck1ZaulUhStfLHrOSqWWQlaz2Q1JjzQqpsnkES+UTfkay154gkn3i DCvlv+nDkqe/mUjjd+6wUkfJNJ2wcDcfr5F12nTZsGp9Ip/0f+sgTq1mMz5aorKQmeSjEE4U YkV3mYsOMhGWigMDU1SQQ4UIsdH8gslHPEcJlbPFlx032WDxo7BXfNE9xgSZFiLFpuYCFGSF sFo8cbbjm3SxWNfg/CoKCeQ3bld83SiFODHb4yKnEW9Fs2pRqDYlXa/W6uKijMlJmSnajKi/ DurtKPA4tiMzhdfQu95NLiRwSDVHEb2oRKNk1OnGTL0LiRylClWEvS/WKBUadeY/suHgn4ZD OtnoQgs4WjVfsfl3OVEp7FenycmynCobvreYCwnPQtl5Dd7hCc8eH47cubo6Iz831qVur3vS WvYTN17irvo1jt9iOmzOu3Uhmd8neq87x807IkZTE/j9P2zfsX3ZhrXhYV7Hk6HZaB7auU1s 8nXrN3hT52r7jg798iA6Yf7f5Qn6q4548/IlEW2/LaVjLeELHgwd+KMqrdSqjdk1p3dtg4o2 JqljVlAGo/oLfVzQwzQDAAA= X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: B4AE0180009 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 6su66637ja6kwq44b1pg7saomu1wq47k X-HE-Tag: 1687780730-330896 X-HE-Meta: U2FsdGVkX19sYc81cpjui2SFr5EKyWx2oqm0WZVC3n0+L9j2luPHVyzrDbG0hGmKHZz5/tngIwH7C0ASufr5egczgtDge21y2k57wQTz92yHMWCVLCngExNx7VV6O67rIGjCahDZxxPCSDx18Q1Isz0gRWsy0vWX856Tqp3ux5uQreNA8hUUqFcTsyLPhE7ZuSv4qIeOw5lwFHIbb6YBzWVT6d4r5XJtcYSAlkEe0Qiu5crKoxQIsxzVRIc+9s/DvKt8zgDBLdDwYnBjqvsMIK+S0SHGQFmaXXrXcG/dQ/LXlJBoxDZXUXXHCbJbQlpehUX81k4cagBMOR98akkjQPrPi4FVyTo99OtaxzYme0l3lUKqwCLjKVCJo4WDIkqp1Ax1gfp0iEYllU8feQyaKgKKxCyoj/CUXI0C3HJlxcpcwDw9S0QHzaAZzDo5Ojd/J0dnotNMQzSmcYQTjl57I+PFzin8niHbs6zNd5T8ym//cOZbGP6WmcHp2TKu52WSO+1vs4r0FI4o4NOgvic6c21BvU7MebdnumhLl1V5VcbSXa5BbXJGeLwRUEV2uomzrT+mcp/4zvCgKYmUkfJvDV7ys7GEqkjZiyMVopxjq2l0291QW6udX0t3rBkWsoRIv6OrAtXh+LDni6Kay4fldsfwA+7WrrwjOUBXl6lCAGqR2fj9SvtF2Uo/ewnI9BNgxI7OYuvisI7Mzsk5IEUugcE9Ifypef4/OmtDFXSLdGZV7rB8bQ16u1BeJnHtdIHBwe6nR2DvE9YvwSx6EGmgIAt6RrBVvpj3rRNj9SBLptwiQFtWCJkOdTPR4nY3qnswmXxqix0elkqFHMu23mS/+gL/Kz7Q/2n1O4rjA4m+zFDzGwXysusRcTK6gBjTubMbco0efDKNR8gKf5GW9qHgxnyWEFSH533miTG5zZ9xAeslvDZhuTHGwWCRBbkVQUOiy1Mom3PfVbq9fw+WdPG ldtJziRs guq1d2Qorob2ftj9f4LeVRKBC064X061MEXlIos92JXAROUGp6xX70JQZiK8qflUwKy/A 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 6c0a92ca6bb5..6a9b9c3d90a1 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(-)