Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp595006lql; Mon, 11 Mar 2024 11:21:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVO4DzHvZ8/+VgFZlvgByMz7zWjakrGZemB9WKkOwtE8QEAsRvPXxuXW+jfMvNJW5lveC+DczZLKwc/1n2hYLEI/7+HY0v3aCOlZfRWeg== X-Google-Smtp-Source: AGHT+IHltAHCq6bHVgqPBse0EsjkBCIXivKpWWsE0tI2MXGUs5YOD7W0uABS7T5DuyeWi/nxDQk2 X-Received: by 2002:a05:6a20:da82:b0:1a1:87a9:5cb6 with SMTP id iy2-20020a056a20da8200b001a187a95cb6mr5910123pzb.6.1710181288931; Mon, 11 Mar 2024 11:21:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710181288; cv=pass; d=google.com; s=arc-20160816; b=RosnAgFQhNND5dqtLBcUbvf5mhwDm3S1N67CuQTcAqdv6UGVgC9oJ0pTa72RsANo05 2Qow9ReJI2oJzYGfVuNZpt1Oe5o/iIChLniQVKfNLjab+9/aEn9McC57wZZWeUFrRR71 fOco3MwqZ2mb5dd+j793cMisrCIZ1HVMYRgtxbdalRsRilukISc9pgWF9KTOKWxmDeNY 2H1BKCA/3qTAbjx0EV/cV+jkqbwhYN0nRBOFfAQI4KmPRjlrZLtlyyqH/0fsapC6nM7t 6rxHemvkGG2V0PfY5N8Z9tv6C5L2Gp7IDYgEfmlccNyiwGga2GZU28gXlFLbUXgWYJyV m8+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=uu0vN9OWT5pwA8su6yrDf5xh0xrr2nA/BSmFKgc9obg=; fh=WP7kk4YUUwxDsFi/xa8wvxrKX2NEMgkc5gBOvu/a4ow=; b=HRIcLpIdBvFxs8cXmx2/hWAa0xanAqgyZCT0f9uK6OLUppAravY+Y89MZfupPeqGfK A1cWQESKrczEZnzQnfm//fLWghBwiq4UqtRs1qVrwq0vcx18odoVkd1qaQicQoGzo8rM 9/lwtJ8ctmb7xX5FX4x3B4YYYkl86gfXaoZSEPyjJoQrLUHSzhlRcWmEYrYD3A6tpiHz wbtcNN8nZ7t500FJu9mHhmCeYz4q2KnEAFIaGK7A/fsWLMJIIZqI8YfDzTmqpbt6YJ2E 3lktRS95fj0d3AP8Q6DzNxb3DlVqeDfvIVtpIQ4UgS6rR2ujckb+DbgfowlVD2bJB96O 8qaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tesarici.cz header.s=mail header.b=z8AlPkLX; arc=pass (i=1 spf=pass spfdomain=tesarici.cz dkim=pass dkdomain=tesarici.cz dmarc=pass fromdomain=tesarici.cz); spf=pass (google.com: domain of linux-kernel+bounces-99355-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99355-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tesarici.cz Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id hq5-20020a056a00680500b006dfecfeab74si5191651pfb.337.2024.03.11.11.21.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 11:21:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99355-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; dkim=pass header.i=@tesarici.cz header.s=mail header.b=z8AlPkLX; arc=pass (i=1 spf=pass spfdomain=tesarici.cz dkim=pass dkdomain=tesarici.cz dmarc=pass fromdomain=tesarici.cz); spf=pass (google.com: domain of linux-kernel+bounces-99355-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99355-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tesarici.cz 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 9A2372814EF for ; Mon, 11 Mar 2024 18:21:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8600A53E12; Mon, 11 Mar 2024 18:21:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tesarici.cz header.i=@tesarici.cz header.b="z8AlPkLX" Received: from bee.tesarici.cz (bee.tesarici.cz [37.205.15.56]) (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 B762E53E0A for ; Mon, 11 Mar 2024 18:21:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.205.15.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710181282; cv=none; b=mUF+cXIqi6gtewLLaGIl6nHqE32YsGBzVP5U1nv4JRLlVoMYeiJn2MtV0YJaxbflfgYcnxb56x0Cf+3H+2+l6EzbNSAIAVyB2o5FQkcLgcRv8UGN9p0zmic2hgNdYfL/kk28+n4vdCbDktsg41q8K4x0nqpkp2nm3pXtSQYtp6Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710181282; c=relaxed/simple; bh=BUUe45GmcgEf+7sZXAFei90Gwt6yjfK4dCtth9t62L8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ma2RiPQQI7uZSIzvQvKydxm08JzmmlrG7xqfi8UCCGcB4GmsCHpoEW5cofjTj4SHIiGrjeCiZMe2M8oXs4IEUNKCWiVEK5ur0qotdQYcL+VJApbWberzxPqsCtFlIcJU6ilRMUqVb1YC1EKHylCScYEg1I0igmPsh3rgeZhp3dU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tesarici.cz; spf=pass smtp.mailfrom=tesarici.cz; dkim=pass (2048-bit key) header.d=tesarici.cz header.i=@tesarici.cz header.b=z8AlPkLX; arc=none smtp.client-ip=37.205.15.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tesarici.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tesarici.cz Received: from meshulam.tesarici.cz (dynamic-2a00-1028-83b8-1e7a-4427-cc85-6706-c595.ipv6.o2.cz [IPv6:2a00:1028:83b8:1e7a:4427:cc85:6706:c595]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bee.tesarici.cz (Postfix) with ESMTPSA id E98F51CF161; Mon, 11 Mar 2024 19:21:18 +0100 (CET) Authentication-Results: mail.tesarici.cz; dmarc=fail (p=quarantine dis=none) header.from=tesarici.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tesarici.cz; s=mail; t=1710181279; bh=uu0vN9OWT5pwA8su6yrDf5xh0xrr2nA/BSmFKgc9obg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=z8AlPkLXRH8Hln+3lBF66TakbKoQUJNIR7HACFeYLc4orin1UX92nUGDp6Gof/ce/ EQ1hv+PfbQXUyjFF5VdWAjRr2jLchmmiN/QqFZMGlO58xrr+nTSIL66116Flyq170G am4F5ykQZhKId0GOCZ/puKSRUomgVsonaZAZC/jouLH0aDGhQpGkQkpYNHp0oMZptV ypJa45o8g4vyJOeZqoAg6VU+R65qWHeszCI1fdHilIlLAlJ+AAeM/KILPqHqCw1XNM hphvY1/fF3bpiPNqx6HpAVgdXaEUZzzZfAX5oSs36H7PnEbeICfJtQos3IHDnEMpF+ M/BhtUiTpE3JA== Date: Mon, 11 Mar 2024 19:21:18 +0100 From: Petr =?UTF-8?B?VGVzYcWZw61r?= To: Eric Dumazet Cc: "David S. Miller" , Linux regressions mailing list , open list , "Linux regression tracking (Thorsten Leemhuis)" , stable@kernel.org Subject: Re: [PATCH 1/1] u64_stats: fix u64_stats_init() for lockdep when used repeatedly in one file Message-ID: <20240311192118.31cfc1fb@meshulam.tesarici.cz> In-Reply-To: References: <20240306111157.29327-1-petr@tesarici.cz> <20240311182516.1e2eebd8@meshulam.tesarici.cz> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.39; x86_64-suse-linux-gnu) 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=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 11 Mar 2024 18:43:59 +0100 Eric Dumazet wrote: > On Mon, Mar 11, 2024 at 6:25=E2=80=AFPM Petr Tesa=C5=99=C3=ADk wrote: > > > > On Wed, 6 Mar 2024 12:11:57 +0100 > > Petr Tesarik wrote: > > =20 > > > Fix bogus lockdep warnings if multiple u64_stats_sync variables are > > > initialized in the same file. > > > > > > With CONFIG_LOCKDEP, seqcount_init() is a macro which declares: > > > > > > static struct lock_class_key __key; > > > > > > Since u64_stats_init() is a function (albeit an inline one), all calls > > > within the same file end up using the same instance, effectively trea= ting > > > them all as a single lock-class. =20 > > > > What happens with this fix now? > > > > IIUC it should be reviewed by Eric, but I don't know through which tree > > it should be merged. Any plans yet? =20 >=20 > I thought I gave a reply, but apparently not . >=20 > Reviewed-by: Eric Dumazet Thank you! Petr T