Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2984712ybi; Sun, 2 Jun 2019 05:26:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6/WFwVRrFNmXzbdx5Gsdv28hA/Dj3Wd3XcV7jzDP1TQNlOqS8YRRQwdaPoi8YwNfD5ADq X-Received: by 2002:a62:ea04:: with SMTP id t4mr23182484pfh.47.1559478369264; Sun, 02 Jun 2019 05:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559478369; cv=none; d=google.com; s=arc-20160816; b=H4GRyW6aX60iWDNnqiyc3JAU//7/InsKdke7CvWLcUoPtDu7OFvHp4cWdlns2wJTVQ hlh7xl06jpMKjT9wDvMUonIipRgoUa7t0+mxmW4XSUQeB+/3aw0TR6MNLPHq6B5HhnQ/ Xk1BrrY93mZXMdPbHbsqEo265Xs33OTVEy9AEJ1D0AqHOPxgi2XSC6byLu9auv1W0ZFz 1584+XsZZyPHvj7DlhbCkYD1ICi3PaPnhJ3ezZuKBoZFinJW6NqltmYLdRIlJbs5IWlJ cUBJi2JSEZCy8zFjjtQ+fuAP+GyFFFtcpWQG5yY4HvfhrdwBsldXhheSfVmEfdGGrrhR vfyg== 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=d9XL3Kdg/XwAAZpeQtzVh3EdhTNcfgE61MkHiEb6f6I=; b=MLnMIfeVFtIoSUNIK6OX0e2T2YY59PX7sBSxNOmIcb3/Knq86lhPGC71m5xb42r4F/ UwFS3e+SZiJH8KIhYfrgWsLsmdAYgd4oKgqEBlYuEGAN2O/tD5E3eJR3vS098I5RQu6x HKkWzA+ehOk+JUwc2hNJEsfoOKnNkbhGCOpRViYTtlszxATyGkIw5z8MPDaqyz/PsKjC HJmUqth0bcAf3mnFfw9ubI46vXDr33uBsFf29lFt0o2BzILSCJX3n/d/x6yXHTsv0tqC q0TRp/nV13siHuiWhPm3Tkjc5OCIyn8HhYkjmBCDc+VhO7C8E+IyWHSbsQdgJZZHJ/0z BzFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=eIiL2pGu; 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 t10si9330782pjr.15.2019.06.02.05.25.53; Sun, 02 Jun 2019 05:26:09 -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=eIiL2pGu; 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 S1726716AbfFBMYt (ORCPT + 99 others); Sun, 2 Jun 2019 08:24:49 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:38072 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726485AbfFBMYs (ORCPT ); Sun, 2 Jun 2019 08:24:48 -0400 Received: by mail-lf1-f67.google.com with SMTP id b11so11430603lfa.5 for ; Sun, 02 Jun 2019 05:24:47 -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=d9XL3Kdg/XwAAZpeQtzVh3EdhTNcfgE61MkHiEb6f6I=; b=eIiL2pGuoT1uPZ6iXK+26kX3ON9RbP1IPb/stloJPcBPj9Zo94HojRPxXy/OkFOiPK X9H9+xcdJRrG5OhcVzQf2kFWuTRAl5KXardR/13k2qRA9L3/8mMVGyJhfmvfa1CKQ5lZ kXMSBhJU+EcziEfH4B1bkn1X38iaVN/7RnDp8= 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=d9XL3Kdg/XwAAZpeQtzVh3EdhTNcfgE61MkHiEb6f6I=; b=V5ni/zMvKEr2YSP764681xvx62M3DvEET9+B7AbfIjBCovuQ0v2gUBonm4Tqix8abA 8+WZAv5UWnv8iCAbmESFK/J6vbIvF4xBzuFLp5VOEIgAb+Y+qnBWFfumEzdf0qnjwJB2 4C5mcAHmPKcFdaV2dNjsrmq7e9GsJYG4Zt5DEznH+PkhLcPDiyNyVHy+ixHfWgDdWlhq Esa5dvDctWI+NLGv2sbrrH9ADVwAUyfK6oAlUPc2LlQYUTiZmRNw2unqsnNHqwZxOkMz 4xK/t89kMGrs1uaB/Y1dDzYex6mOkTRdpMJr/U/Sk9lexar9LRlZ1UWBIoNEMDyZsUIq XSEQ== X-Gm-Message-State: APjAAAXTFaXPdMOszvDwmSoNAF0Cfrms2ljZ79Oi/cl2rs+7y77sllWk 1btC98aNMneM0PzLsrW6K2LNcBKACN4S0dIHNNaZ0Q== X-Received: by 2002:ac2:4544:: with SMTP id j4mr10902247lfm.176.1559478286535; Sun, 02 Jun 2019 05:24:46 -0700 (PDT) MIME-Version: 1.0 References: <20190601222738.6856-1-joel@joelfernandes.org> <20190601222738.6856-3-joel@joelfernandes.org> <20190602070014.GA543@amd> In-Reply-To: From: Joel Fernandes Date: Sun, 2 Jun 2019 08:24:35 -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 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.