Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2512769rdb; Mon, 12 Feb 2024 07:16:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV7dCfq3kJDVwvukVIkg8y8R8Ggy0zYOtHoOx0WauUta33QK0qEoj/9oH0q22YS+OfV8wJZaUJ0jWEvRaZ7JF7IW8jUyk6NniYon12PbA== X-Google-Smtp-Source: AGHT+IHf6XKLWIUdQchKcVptR3SQKB6jGRthIBqoj6zwXkMzBezBs8QYxP/KAcv/ZY0WBeqWgN45 X-Received: by 2002:a05:6512:2108:b0:511:3261:d112 with SMTP id q8-20020a056512210800b005113261d112mr3955353lfr.9.1707751016600; Mon, 12 Feb 2024 07:16:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707751016; cv=pass; d=google.com; s=arc-20160816; b=djlNm2yXCw4MISKWUSo/iGRKDt5IrDGZ6JvT2nwhnFeRfQdJgoXKc+uV9MpvEJJdjy aTrzZoIUSZqAdl7CRAVHoEXprE6ZOdSknJdPxWlQqTtecJQMmBr2mmP53Ui838TjS//2 ll7lp0pk0AtqlbqMmYC0oH/HRg/27T8n52SkQm+lZj4Lv8ZhltFSaSrXEMbFBxKt03UV CLDKZ1Ljb8EReHgb/UNc9mNtrhv8+W7TbcaE2XH6TWjxT2yUSKnnfpWXzCwMRXzd+W9/ JI3ogR/rLejtHOS9ls3Ofa2zgi7J9j9fuWTM8BPRBfH0hFKWtfclhuAQb0RDHeJCeYbo eQkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=C0+9xXf1xmlpe5oi4tOOoKsJ9pZFh5ERW9flQIZRs88=; fh=T7NjrhA62NbN1SDhK7AdsWEpnX2xBlMku1QVpD8KxoM=; b=odJ/cqgJ9DyvLg49kroSIf2Vv8mWYURHjz2YNBjTKfaUh7UTi9hlL5+qPiGbztkNQb cv7dmvvimnamxq+plFUEWrY4cWYmU4oZfsYZfai0SvX8rulHOLSHiFQ6lSY6vJFqnlzo C4qXIaNgN/aNLJRBZsFhf5L5Nuekp7bhWjqPlPwJpToozVKn1XQDVNqvrbYnZwtv4NwT C/OpYPzzaVXc6krLCpz/HlVbOllo3Vs2hrW0Hwwz8oSDT+cCOSFj12kN3/ui7Tp1VcuF X77PANTMwTp93ItH9BGv854hz4pI3IvZkrFaLM3rViqS7LH5lYM3kFFtkdpJMTxR6hOI 8uoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=X5naKi5g; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-ext4+bounces-1201-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1201-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCVHbYMWGYC2+hWpTSu0oVRPTz2uxpI8NCS8PO4aaj45F/G6cIJ+74ZNjkk92Qb7AVC3eUQ2OWhX0F/Mws0npToEz+B0NtngfMQCY1GAKw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n17-20020a170906089100b00a3be92a1a49si261433eje.780.2024.02.12.07.16.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 07:16:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1201-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=X5naKi5g; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-ext4+bounces-1201-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1201-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 564B31F21F73 for ; Mon, 12 Feb 2024 15:16:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D5DF3C48D; Mon, 12 Feb 2024 15:16:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="X5naKi5g"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="wvaAtq9g" X-Original-To: linux-ext4@vger.kernel.org Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 833861DFD9; Mon, 12 Feb 2024 15:16:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707751005; cv=none; b=AzrgTtK71O9YRdcVUfPQFFnOpjcahObwyhW06TqlKb1ReCR75bxFiBgNLKK6mVe95Fy60KmBK/fFC9Ljdb0LNAe2uLkcmB4FhvhJSmL3D8iCySebt5cP2OQSIkL93jMtLNFG3tTgr30jD5fHPO1930EJsFy1GG4kb7j6RIr6i74= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707751005; c=relaxed/simple; bh=3chvmobw0WIhPXp502BMUquxmX0WkgFAgr4Y5a+BiK4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=E12dH9Twj5lcQMU9sGIbIdvXe/rO7jxaQ3uGY3fyrMxW2/8CM5aXvZ5/SVnW1pWcHc+a6vCuxJskKY2FxaoezZNSxJWbW76EOVvosdPFpF3Hiqtps8RGGJXP2y91mRMlV+o6kq/V157GS2ZC7SwzOoMio2SgjCzO2aBMFqQkQt8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=X5naKi5g; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=wvaAtq9g; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707751001; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=C0+9xXf1xmlpe5oi4tOOoKsJ9pZFh5ERW9flQIZRs88=; b=X5naKi5gLpvZkYPThLTAQgcrOgmy7YnG179d5g9Zp0omwvh7aQLVvP0+Rlpn18mGTFxMVS jb2OZM69peAkDCL3yF1jhi9jdM6PGkhHzdqiyNkma8rajbUwpx+HZjDXUlKVpumyENxaZ2 LPo4BLCgiNACH4nQjgU9UuW+MEmyXZH1whNpAhisf6WmczXagVYIkUzTeheK86QtZWf9U6 3XJjiQDuJAWk7KCjGTytUpoi1cc/0Ph1Fc7WGqbAhlZSwzb/k+buVyjqd2knVFJJqEtp9Y Fj381DdX3HHi1MwyJ1buO9ZUt/ECWBEkvtQedGK44DUkGfRizsz9fRj14/9l8Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707751001; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=C0+9xXf1xmlpe5oi4tOOoKsJ9pZFh5ERW9flQIZRs88=; b=wvaAtq9gXWu+gOMPiuUPNIHogxDOFBTHTovmSRErtvucLMRbKc+sW6mcVW7KPtOAn9Jr0c FJrzz2lzCTOfMLBw== To: Byungchul Park 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 In-Reply-To: <20240130025836.GA49173@system.software.com> References: <20240124115938.80132-1-byungchul@sk.com> <20240124115938.80132-15-byungchul@sk.com> <87il3ggfz9.ffs@tglx> <20240130025836.GA49173@system.software.com> Date: Mon, 12 Feb 2024 16:16:41 +0100 Message-ID: <871q9hlnl2.ffs@tglx> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain 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. Thanks, tglx