Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2793790rdb; Mon, 12 Feb 2024 17:50:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWmEUzQfUMtgctG23k3n+WWmwxbIsKcx3+BKgy1EpIzyVglaOADvvFLfG7L3H5uz2Kf0vQrUQChgMk7mOYFm3BIiJ1fAWDPm1jQY+6uug== X-Google-Smtp-Source: AGHT+IGWLfKiOKtukFGdMJ5/hbsDJ/L7tnZIi4Si58yJa4FYFrtCoRczItNa16l40GZm+XgKw68c X-Received: by 2002:a17:90b:3782:b0:296:a808:5fc2 with SMTP id mz2-20020a17090b378200b00296a8085fc2mr5303325pjb.21.1707789029192; Mon, 12 Feb 2024 17:50:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707789029; cv=pass; d=google.com; s=arc-20160816; b=Ske+xdzaEZSOT4ZsuIoRopWOQ4sVTreiA/kK5FbFhCwv7BS6gbdipcj2aPMy4MRinj DFaPtJAgg+u7hLkK1n4BqCPX389QIf/XLu1N9BwsD+GWNpZxF0/i8J5WdKKzWGrTZDWL sVL1NnsH5Wm+G4lXGwO6HmCAHAIaLhvL0mmHL9oUA6hGBtdzp8h5JihOmNhqk3ccV5Zm BqkOg4kFsPhgo8en9RK8MeSSy1GPgLWw63ObtrK0u8FfRRr7Nl9VIASg6qY3wAXOgxkN Dwj3o7HhVX2UAy6e/7mjHOK1P/xkT3Q/+ZWUBSsE0sgEfl1CAIjDlGN2kSqBZoIEqpOI DFfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=g457RA5t2a9GtMRr1hDsyhRy2a2skpSIkLGjTXk9rws=; fh=P0loa2RmZcEZKBZ29pK86KwvUqNA7RPCjQITNS/xrbc=; b=s2XCu9vWQPHfgiTNoargsmUFLMrGNPIxA2QzWgsrRuzUhWSLzdwOp3HL673ydoLNTQ RyyZ5cpI1rHnsOcHjTnujJnLUNeA8YWUHZXk0XiZ+7wBVrjFwunYG+axpbCLAs6hjE4P DSIH7NEEoJFeWrg184NYOSmYlbeXH74/IHv+33qN9QpXKT8DOTFnerqMRuFCBj8M82uy asjq/RJp82TuUn47GCRYEyd5jnLWNhR6is2Ec95s3NrCHpW/wZwQA2YM/2SImXTtg17F GIBxxDvz/imLYZyGwukKFYCZF+maD6VK3FFIJAIGXVEZCvCPbkb3TjwjiQsUNEnbsO8v WNTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-62865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62865-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCW/O6TjM11Uk1o5jZFJn7LVd7CcwcK325IvZLDvmal9feN4WeVPBhSgemT5kcrhr6PCdttVNz7lzZwPkOJmPZPqos6WQlpZapxLOuxfpw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id oh5-20020a17090b3a4500b0029707db80edsi1183140pjb.134.2024.02.12.17.50.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 17:50:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-62865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62865-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D6DB328602E for ; Tue, 13 Feb 2024 01:50:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4AC418E37; Tue, 13 Feb 2024 01:33:24 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1FD418059; Tue, 13 Feb 2024 01:33:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.125.252.92 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707788004; cv=none; b=ifshXZGkWDxmSXekUdDgBY77Q7eiAlB8pHCd6kfbVQddtabzR5IUieRRcWFwzNbQ5tVEA+M1WiO8gLmF+Ul458SwtqtiF6EGrNNF9fej5awEquVU9sEJYriBGeoCDTyDykVuARvZVzpZl8xFV0fL3vur5kjtiVy9ZikW7YNGttM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707788004; c=relaxed/simple; bh=oMSbIyb+LZ3e01aikg72/MR6b0mA4KQo1k/aocJA1wM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Any6deIM5bvBg19UphHBdErRDDbWUOozAsupX99DQ9F3gvGahat0P+qO2XEHiJSjwGxqWRR6vmLU3SFF3hFCc5yCCn8wq0OCAAqWKtle6N7mlKKJ5BpnImbxy+t2qZ63o0+0jukqoqiMWQ8X7z1uq6vIL/YXunRDpf88whyGSK8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com; spf=pass smtp.mailfrom=sk.com; arc=none smtp.client-ip=166.125.252.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sk.com X-AuditID: a67dfc5b-d85ff70000001748-64-65cac3510c41 Date: Tue, 13 Feb 2024 10:18:04 +0900 From: Byungchul Park To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, 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, 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: Re: [PATCH v11 14/26] locking/lockdep, cpu/hotplus: Use a weaker annotation in AP thread Message-ID: <20240213011804.GA4147@system.software.com> References: <20240124115938.80132-1-byungchul@sk.com> <20240124115938.80132-15-byungchul@sk.com> <87il3ggfz9.ffs@tglx> <20240130025836.GA49173@system.software.com> <871q9hlnl2.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871q9hlnl2.ffs@tglx> User-Agent: Mutt/1.9.4 (2018-02-28) X-Brightmail-Tracker: H4sIAAAAAAAAA02SbUxTVxjHc86999zbxi53FfUMkm2WyQyLiobNZ4vZzJZlN3vLlhk/6KI0 cCONQEmrKHsLykuYIBMMLy3ElGpqAwhSDMGXshZioTSDCkyQQTcYBJm8RLbiGAxWSsz8cvLL ef7PL/8Pj8CoV7lIQZd2QjakaVM0RMkqZzZU7/i8vUuO65wEKC6Mg+Bf+SxUNdQR8NfXIqi7 cQbD1N0PYGBhGsHSTz0MlJf6EVSPjjBwwxNA4LSfJdA3/hz0B+cIeEsLCGRfbiBw79EyhuGy Egy1jk/Ad8GKwbU4yUL5FIHK8mwceh5iWLTV8GDL2gZjdjMPy6O7wRu4z4Fz6DUwXRomcMfp ZcHTMoah71YVgUDdKgc+TycL/uLzHFybtRJ4tGBjwBac46HXZcFwPSckyvtzhYOO8y4MeVca MfQ/uI2gNf83DI66+wTag9MYmhylDPxz9S6CsaIZHnILF3moPFOEoCC3jIWefzs4yBl+HZb+ riL735Lap+cYKafplORcsLBSl5VKN80jvJTTOsRLFsdJqckeK12+M4Wl6vkgJzlqvieSY76E l87N9GNptrublzorllhpvL8cfxZ1SLkvSU7RZciGXW8nKJOv9w2Q9NvK0/UWmoWqhXNIIVAx nlqfdOOn3Jb9mKwxK26jtcU/MGtMxFfp4OBimCPE7bSxdyjMjOhVUr/13TXeKCbSB7+7uTVW iXupO/Aw7FSLbkR9jfvX/5+nXtM4u74bSwdXpkIZIcRR9OpKuI5C1FB7d204skmMpq7mjlBE GarWpKAXXSZmvecL1G0fZC8g0fyM1vyM1vy/1oKYG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K qkLEWbb2R/8P4rjax/5wQ0jn1IA3I3o5kBROTZ/gJ6lJUVPJdGSOtJBUVtTji0hp+s02/Wab ftlmxBQjf21cUqxGGxMept8fnRynPRwWGR9rQ97Hs/wzmXEfjbo2ViNJROqZyohFjbKK0yTp k2OrEREZtb+y9UqDrFJGaZKPyLr4vbrEGFlfjQJFVj1XuWmnHKGS9mkOyvtlOUHW/Zxi0S8g BR0NfenelLrtWemt9Kr5K54Wbnid67i8ne6JdBlHhwpHnBXXpIIbUrQ5eKr9zdEsu9YY7FwT rwxOSEs3tY59211vmvyUrGXCT1wP+8/oloJw6ayOdZp5UbcrckaSQp2LrV/6L+wgWosnIHEL 0P5Tgce6RmrX7DpQNto3o/N588ztalYfrVkWwuj0mu/gxPrBdAMAAA== X-CFilter-Loop: Reflected On Mon, Feb 12, 2024 at 04:16:41PM +0100, Thomas Gleixner wrote: > On Tue, Jan 30 2024 at 11:58, Byungchul Park wrote: > > On Fri, Jan 26, 2024 at 06:30:02PM +0100, Thomas Gleixner wrote: > >> On Wed, Jan 24 2024 at 20:59, Byungchul Park wrote: > >> > >> Why is lockdep in the subsystem prefix here? You are changing the CPU > >> hotplug (not hotplus) code, right? > >> > >> > 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. > >> > >> This lacks a proper explanation why this is too strong. > >> > >> > Furthermore, now that Dept was introduced, false positive alarms was > >> > reported by that. Replaced it with try lock annotation. > >> > >> I still have zero idea what this is about. > > > > 1. can track PG_locked that is a potential deadlock trigger. > > > > https://lore.kernel.org/lkml/1674268856-31807-1-git-send-email-byungchul.park@lge.com/ > > Sure, but that wants to be explicitely explained in the changelog and > not with a link. 'Now that Dept was introduced ...' is not an > explanation. Admit. I will fix it from the next spin. Thanks. Byungchul