Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4083285ybi; Mon, 3 Jun 2019 05:31:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOpc7v3hDQjPNxFfIADIZIS/8ILzRIv8xr7TS3j7OPj/RGSK2/6j6PIEXnS5j/KyncU9Bn X-Received: by 2002:a17:902:9a49:: with SMTP id x9mr8761462plv.282.1559565097674; Mon, 03 Jun 2019 05:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559565097; cv=none; d=google.com; s=arc-20160816; b=FNSHgdEj6cA2dNzDNhKJaJlOfhVGQ6T9mxAiou/whmPsandMf50cLsH1Oy77KzO+t0 FxTbQVsiiEGOhal/GlQJ9qoSkCk1UGJQS8CwCMc7dms6Z5ZgNS00k0t/RZXW2tTzxseg v/SWJFMbPzshWdS4ju+RSIZU/sF+wP/cXXp5vn3Rir7/IhsRr72v5T+D/gSCPT3NCYoK W8iPC6Yj5h9tyn/NE4vfaiMUtNKGQSPfWSa8bzmZi7ETKLi/INbWSbsPadjeRRuAo0z1 OUTYOuRdVLZOOEpJR6r59RcOhMSOtBzogECkw8j6NSgb+npqju6UlRxkdcGgQRwpcweI q1rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=WvqHOC4rVKX462WwE0yHSlmBZF1YO9aROqbvN/HfH6Y=; b=c9TXUNXjUCsN8W81RVngdD+CSLtudr6ayBL5mSfQEbbh6CvxC07r1RwZfUj5DwCzgZ yUrx4gb9e9N5h1wIcGm3ry0jVtuxcq7tCZi4Ja2ljyicQc2H5Mf70XCnkTBSi3xhlsG1 6TQrBWAMr3bkmDQh86DmDbH5IOgaqpNK4RJreL9Tz3R0SLdDmFFf5DqZOPKhGZ3pxjUy gSQ+ToERzeRGsHOj/75+6vYq72+v3B2wbyxQ43RPUMhBC6jqBECWUlinwZPoBrdvcnIC dZEPumz1quUKZhuY2ZvYzXZeybvwzUX2yC3lH5JEoU2Sbk2VhxoBDCis6M00ktSDvYn1 hPfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=PYGUZK+G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a19si15191920pjo.77.2019.06.03.05.31.19; Mon, 03 Jun 2019 05:31:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=PYGUZK+G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727381AbfFCM24 (ORCPT + 99 others); Mon, 3 Jun 2019 08:28:56 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:39712 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727323AbfFCM2y (ORCPT ); Mon, 3 Jun 2019 08:28:54 -0400 Received: by mail-lj1-f194.google.com with SMTP id a10so12755417ljf.6 for ; Mon, 03 Jun 2019 05:28:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WvqHOC4rVKX462WwE0yHSlmBZF1YO9aROqbvN/HfH6Y=; b=PYGUZK+GV8eTc/sc1/LJV2/FRh6sJ3eQVXqtHpM1WdCHjxWxGcJHVX6no/5nw7UnO6 DV0yDj/ec3TxqyDkkmaBhVAS4R0g44dxp9/lCrwxqbNfRaWzZra8qYmAc+YZXjsgn2FX UGutllvZNq/hEvDPh7uqahFLrpIWsFBdileHo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WvqHOC4rVKX462WwE0yHSlmBZF1YO9aROqbvN/HfH6Y=; b=LHmaqdAIzw5mheQmw+f+72FDBRZeueXwlu1G4rZ1OWPKS8uI0jY06h6oLINu7SWekF eUiC2YdD4u9fMVuFrQ4UcCQ2oO7FOI4vFDlCW0SJPR0HZD0KkSE4EGaXdxZDmnb2ZQXL ldjLpGtD0n4nZaF7/OCMa/sM6khmCnMTNI3EaVN3yENn0jENcCknT+s0THUQqpd6aLzE xRqcHaMt/NZxfO55OUExeHbHqVofk4P4pDjcmdbTznT9FJGIRMqlzgbkVicIo3mlJKX/ J4oEVl8Y3zAfM0oGsgZRgaUgylX217/euYCC20y2LA1uPR9bLSD12FA3/JHQyWiAxjRz Bl0w== X-Gm-Message-State: APjAAAWI7EofWEVa8c4vbY5si67AzHEG8FWDgOAZnZOgDLXTLx0z9zA9 J+PBxz0fUlpaJFFkXot22exEO35fjB9GqxufS2zW0Q== X-Received: by 2002:a2e:9742:: with SMTP id f2mr13977662ljj.184.1559564932484; Mon, 03 Jun 2019 05:28:52 -0700 (PDT) MIME-Version: 1.0 References: <20190601222738.6856-1-joel@joelfernandes.org> <20190601222738.6856-3-joel@joelfernandes.org> <20190602070014.GA543@amd> <20190603064212.GA7400@amd> In-Reply-To: <20190603064212.GA7400@amd> From: Joel Fernandes Date: Mon, 3 Jun 2019 08:28:41 -0400 Message-ID: Subject: Re: [RFC 2/6] ipv4: add lockdep condition to fix for_each_entry To: Pavel Machek Cc: LKML , Alexey Kuznetsov , Bjorn Helgaas , Borislav Petkov , "David S. Miller" , Eric Dumazet , Greg Kroah-Hartman , Hideaki YOSHIFUJI , "H. Peter Anvin" , Ingo Molnar , Josh Triplett , Kees Cook , Kernel Hardening , Lai Jiangshan , Len Brown , linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, Linux PM , Mathieu Desnoyers , Neil Brown , netdev , Oleg Nesterov , "Paul E. McKenney" , Peter Zilstra , "Rafael J. Wysocki" , rcu , Steven Rostedt , Tejun Heo , Thomas Gleixner , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 3, 2019 at 2:42 AM Pavel Machek wrote: > > On Sun 2019-06-02 08:24:35, Joel Fernandes wrote: > > On Sun, Jun 2, 2019 at 8:20 AM Joel Fernandes wrote: > > > > > > On Sun, Jun 2, 2019 at 3:00 AM Pavel Machek wrote: > > > > > > > > On Sat 2019-06-01 18:27:34, Joel Fernandes (Google) wrote: > > > > > Signed-off-by: Joel Fernandes (Google) > > > > > > > > This really needs to be merged to previous patch, you can't break > > > > compilation in middle of series... > > > > > > > > Or probably you need hlist_for_each_entry_rcu_lockdep() macro with > > > > additional argument, and switch users to it. > > > > > > Good point. I can also just add a temporary transition macro, and then > > > remove it in the last patch. That way no new macro is needed. > > > > Actually, no. There is no compilation break so I did not follow what > > you mean. The fourth argument to the hlist_for_each_entry_rcu is > > optional. The only thing that happens is new lockdep warnings will > > arise which later parts of the series fix by passing in that fourth > > argument. > > Sorry, I missed that subtlety. Might be worth it enabling the lockdep > warning last in the series... Good idea, will do! Thanks.