Message ID | 1673235231-30302-16-git-send-email-byungchul.park@lge.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 63356C5479D for <linux-mm@archiver.kernel.org>; Mon, 9 Jan 2023 03:34:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 453838E000C; Sun, 8 Jan 2023 22:33:59 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2E5018E0006; Sun, 8 Jan 2023 22:33:59 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6B45C940007; Sun, 8 Jan 2023 22:33:58 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id B2543900003 for <linux-mm@kvack.org>; Sun, 8 Jan 2023 22:33:57 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 0AD08A03E9 for <linux-mm@kvack.org>; Mon, 9 Jan 2023 03:33:57 +0000 (UTC) X-FDA: 80333841714.07.F513922 Received: from lgeamrelo11.lge.com (lgeamrelo13.lge.com [156.147.23.53]) by imf09.hostedemail.com (Postfix) with ESMTP id 0C7D5140003 for <linux-mm@kvack.org>; Mon, 9 Jan 2023 03:33:54 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf09.hostedemail.com: domain of byungchul.park@lge.com designates 156.147.23.53 as permitted sender) smtp.mailfrom=byungchul.park@lge.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673235235; 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=qSwLhN2yZoAJHPUw/7dzilv9po8qOC9+uBGRi10oC5s=; b=6zoYELhVGfPWjyhLsY/noR/FsliIvHIYqsZAI091McrgYXI6fwCIWjAam3L7PxkMUI4FHP vjosc0B87JXLi19279CAHIiUz8e0tT5rzS4rMs0NUBkE+zu1WWv3iYbo9GEYYDUdKc4Moa +1Mw5EBerwLjCwu+fgyJgiUe5KGkY+k= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf09.hostedemail.com: domain of byungchul.park@lge.com designates 156.147.23.53 as permitted sender) smtp.mailfrom=byungchul.park@lge.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673235235; a=rsa-sha256; cv=none; b=CZyENMa8WB6PD1mebF+y+gTDaiGPn/y35rvuN8vvPzniFM28wyeMYqeT/nPMA4fZANDTE6 sG5T5ex2zgwlozrSWT3OoHArLc7ar3jd2kG+JcdhwLK5Zll1WJjOzvE2SAuNrvEENaBr9R R+/JfYXpkcuAh30rxo8ABjkyKRfFHAc= Received: from unknown (HELO lgemrelse6q.lge.com) (156.147.1.121) by 156.147.23.53 with ESMTP; 9 Jan 2023 12:33:53 +0900 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.121 with ESMTP; 9 Jan 2023 12:33:53 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: byungchul.park@lge.com From: Byungchul Park <byungchul.park@lge.com> To: linux-kernel@vger.kernel.org Cc: 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 Subject: [PATCH RFC v7 15/23] locking/lockdep, cpu/hotplus: Use a weaker annotation in AP thread Date: Mon, 9 Jan 2023 12:33:43 +0900 Message-Id: <1673235231-30302-16-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1673235231-30302-1-git-send-email-byungchul.park@lge.com> References: <1673235231-30302-1-git-send-email-byungchul.park@lge.com> X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 0C7D5140003 X-Stat-Signature: mzsbtju7qmrauugu5od8chu6nz4kkzpq X-Rspam-User: X-HE-Tag: 1673235234-116124 X-HE-Meta: U2FsdGVkX1+KWX2yeUhDXAtfc9/gOHNorB05ufjSGW2s3Hw7ejjK3c/ODS4OXqblSmGkj8RvXB7GBm9lf9QEJecWrlaKZQWBUufgLHEUDkJTRdTRPeX20fS9Vq0+gW1H9ojN6PwMQWqMq1j+xtggzTRRkwiQhVhW1SOr2LFMpb1Sp5ufEcg/p+r9TJp6SMovTcz1bQx/azl/nc/oPOUt9Lhz/R2Aeknt8O8G9v0FUnF5vvQdNg6dy2Jfv2mL29Fej0PJ8qtFUiTMw7DBAXeoYEKo2FkEgWupf02gVyWABH617vOjg089piC4a1bsbWz2jXbYBuVP5MUCsXnK0MGNsrB5Tau/QdgXz13A4nxXxXpIPmt1SdXeKv7zdDofjUTpemoTDXh3pAeP4nbh7oLOFmZfeDF48Rka+1vgxVc4TCTlXe3F3lUFTjISN5y+qfylOmeYYhExUkkUqeo2UtY0wnzIjSL7ELClWA2OywjRcam+UxkH+QWgfTlXaqBvwk8KBO/hgvxOlwfwKGTBwplDG8EDVJWGbFepPxRQd/8dqiagIZRMT85TXa45GNawPj93BxnZ5F/s+xlf3S6lXlCTih0FZiYCIu17smkmUw0oD+btoqFkTPhrcjyRKBxRcj6EhjNo3fd+9H3+Kyv4yQimojGgxRM1008Hhpf7VL/BUQWm5ivZji+JfT9weCJRP2/YL4LCKwSvJ8711Csa/DeWa2rKwl2seq9pKpUtUbd6grtfyh7Ely0KILXhKWmvaFy0UC5828YjgwHBujyY7KnJrE9XVPNr0sJ2Ps8lgKu/ippecWnv8rt9kMRI+rMdM1fJbIo4sSJAufHDm1JHIQlwMA== 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 6c0a92c..6a9b9c3 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.park@lge.com> --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)