Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1231697ybi; Tue, 16 Jul 2019 11:37:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUETran720whjL7zMixdQysLEuEDKAWmZ2yUhrhVbQuj8G+hoQVYNUvahnzFX57OppXYn+ X-Received: by 2002:a17:902:e65:: with SMTP id 92mr36119254plw.13.1563302237904; Tue, 16 Jul 2019 11:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563302237; cv=none; d=google.com; s=arc-20160816; b=fWTiKbJv/15Pn6U1/xJGuP27+VacjFpw6Q6Qn5EEcCY9pm4jmt0ndefxxXigYyv2kl aY/76hoIy8Z/h016NLKNKUQ7PA6PeLekjiQL6OAyySWD9sODITt1BRQnCPZV2yx4O9k7 d+TPjOp3xwJnbNxBNeeEmASZKtI8af6FeYEIinQ5uVgTK5It9XymG5+Ol0iumfVu7Bsp h1qn5TQy7vYZBUC+qm0jeVGHJ205z4kzDThZl0SFAgpjyXszSuGdvrK8AbmK+H2WP0aD bN5K/8smY95x35Toifqa7z7wWO5u+wcxA20T29kF0af8H5fts1fBXPdUWRCsQQc5DJtW r4tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qAKhev+MhcsyOVuReyPGPlfwr6RAqsm8KLJC/p+tBWo=; b=pLTKguDkWH8KuQ4Rw1IVh4LnebrMRD6ItvzDyOT7LMb6tzfGWBeDVKtxNHYPUhpaZg kIv3bo92aV+EIie+Xl+ChufDhVoQeKjwG1h2qPZ1MIqXJc2cLj4aYXNRuPtSUDgKyRXI fPxhbKMMdf0a1pvMWqQlNrITqWYo1Z/6U6R3ZzgZa8joCbi9SnUtIuTG8D3HyI2JqfPp gVynXkO9UXUCgtXWqbC9Lmg2Kd7Tv94GTR3xdRvOQFw6LCxF+2fIHiXGulXFGXPu/AQ4 5oPHkmZgtaIWzVGtoW2Dt8v1fTjjfHcxMznb/Z6e1L8O7pIK4uHcsO73HI5/tJ/QorqY mG2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=BtxFNZrJ; 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 e36si10707449pgm.527.2019.07.16.11.37.01; Tue, 16 Jul 2019 11:37:17 -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=BtxFNZrJ; 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 S2388310AbfGPSfV (ORCPT + 99 others); Tue, 16 Jul 2019 14:35:21 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:46650 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388300AbfGPSfU (ORCPT ); Tue, 16 Jul 2019 14:35:20 -0400 Received: by mail-pl1-f193.google.com with SMTP id c2so10524587plz.13 for ; Tue, 16 Jul 2019 11:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=qAKhev+MhcsyOVuReyPGPlfwr6RAqsm8KLJC/p+tBWo=; b=BtxFNZrJ1lxuLHdz4p0cb5NpRBas4oMeXYrSpaXChm3f5inh99nI5E+MdCjO+0SvFN Ry8bf1i9hikIL8m72cMNN8wnWLsm9KfRlPPMZ5RjfBcQEkIc6IujCMbAsuy+mISYcuee Qr4kYdcFcd5XUHZrH7KXQ8HM3/IMx446SBoQo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qAKhev+MhcsyOVuReyPGPlfwr6RAqsm8KLJC/p+tBWo=; b=Pyo8LZJrArak3xRowoB84K/MSeGSyTBlvdqpvWHiOTt5rWwsgltL+rMBMzvcbwS3fL LkQoU3BlTd8ZGoWbcZvUUOJLtF1uacUEFF2oEmCNbOdxX3zEnEwkspOAp5fDFkuYFFMv z7HyksjaY7kOfV3VWLgie7v3vFCsUppufPYWOksr5hkk0GS93eyNc+dOSUcxKCvzJaIn 2IZA17aN0eiGQGl+fiUl/5BBHkz317XwIFIObvLQgtBntpX4ivoKIqP8FvEQaM5bso81 xJsc+N3HkyrMivho0lGJgsEEymr7qXoeUHa+wElAfLfb8SZURs+rr3IOBmMAPjJIk8ng jLzg== X-Gm-Message-State: APjAAAVdtly2VJXiIcI2aRnv+WOft26yPfSA5xkACx9KBoJEHNXXgOi5 Zzc6cGslZNIVO4WcWKEt3JQ= X-Received: by 2002:a17:902:b603:: with SMTP id b3mr38238048pls.9.1563302119843; Tue, 16 Jul 2019 11:35:19 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id a15sm16618398pgw.3.2019.07.16.11.35.18 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 16 Jul 2019 11:35:19 -0700 (PDT) Date: Tue, 16 Jul 2019 14:35:17 -0400 From: Joel Fernandes To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, Alexey Kuznetsov , Bjorn Helgaas , Borislav Petkov , c0d1n61at3@gmail.com, "David S. Miller" , edumazet@google.com, Greg Kroah-Hartman , Hideaki YOSHIFUJI , "H. Peter Anvin" , Ingo Molnar , Jonathan Corbet , Josh Triplett , keescook@chromium.org, kernel-hardening@lists.openwall.com, kernel-team@android.com, Lai Jiangshan , Len Brown , linux-acpi@vger.kernel.org, linux-doc@vger.kernel.org, linux-pci@vger.kernel.org, linux-pm@vger.kernel.org, Mathieu Desnoyers , neilb@suse.com, netdev@vger.kernel.org, Oleg Nesterov , Pavel Machek , peterz@infradead.org, "Rafael J. Wysocki" , Rasmus Villemoes , rcu@vger.kernel.org, Steven Rostedt , Tejun Heo , Thomas Gleixner , will@kernel.org, "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" Subject: Re: [PATCH v2 2/9] rcu: Add support for consolidated-RCU reader checking Message-ID: <20190716183517.GA129705@google.com> References: <20190712170024.111093-1-joel@joelfernandes.org> <20190712170024.111093-3-joel@joelfernandes.org> <20190716182237.GA22819@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190716182237.GA22819@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 16, 2019 at 11:22:37AM -0700, Paul E. McKenney wrote: > On Fri, Jul 12, 2019 at 01:00:17PM -0400, Joel Fernandes (Google) wrote: > > This patch adds support for checking RCU reader sections in list > > traversal macros. Optionally, if the list macro is called under SRCU or > > other lock/mutex protection, then appropriate lockdep expressions can be > > passed to make the checks pass. > > > > Existing list_for_each_entry_rcu() invocations don't need to pass the > > optional fourth argument (cond) unless they are under some non-RCU > > protection and needs to make lockdep check pass. > > > > Signed-off-by: Joel Fernandes (Google) > > If you fold in the checks for extra parameters, I will take this > one and also 1/9. I folded the checks in and also threw in the rcu-sync with Oleg's ack: Could you pull into /dev branch? git pull https://github.com/joelagnel/linux-kernel.git list-first-three (Based on your dev branch)