Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp6109905imm; Sat, 19 May 2018 17:57:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoqMOtwThmS/TZn3tB5B1x7/4TRlTTqjVS7jqRj1EFFx8w+w/LAfG+bUHop7hOUwjmem1E9 X-Received: by 2002:a63:798d:: with SMTP id u135-v6mr11862347pgc.112.1526777842377; Sat, 19 May 2018 17:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526777842; cv=none; d=google.com; s=arc-20160816; b=VsI7UyU4W0gS9Mvmtk+/m0wVJYLt6T2FUPoF5LyxxOKzZM7CnFmmuqaX08QbbQT4Qs 14djyuPQ3r4tpciE4FIZBE3HTh3KYHM2HsjlS/1IoNCpCy4y/thqRAihHKpV1ejF55Q9 3smGaJpWJAvjRM1xRQHU4uZUIUqvezKeLXp8+9YxqltQZlxbrkmW5rVQ9lNPy6svvixR LPX1OQZRAWZLQSgnRbHT1L8P1jZzjNU8YrqTUnVs0PdZkz6ETP+TeH2FJRAZZ38Gug74 PGWzHcQKAVmg2BmxllYvArLdzvpQVyz8nqvtWSmlBJXBT3Wd3tQW/AaGc6bPNfl1XK43 xoHQ== 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:arc-authentication-results; bh=0JbLu40XfaNrN201yzIjDfj/32yqhf5UAEDL3dmALbs=; b=wJQtWmieQrDr6cCIibQJQCQ0GBYCTOn18RUdr2ZS1fqxTvMt/tne8QRkZaYcXl8LMM SawuilFdBSFxwTrTWzDiwXTuiOkLuyV/r80dR95ZV5wheJUKENYdvc8TMYIzY/E2oCYg /BhqMah7a+c+3WSCMemOX3QENEa6S39F+jtznz6DqnFL5EhLZmrHTIqFc/Qc/cWNfaz3 0htlt1GLnpXy9aod6uSe0GvF/SDFl4uzWyEnHkeuS4HmhIbw58X/87L/Xg/w3FujIbG1 FfyORwD0DaezUUOFI7Xf1l7hHnnqOphjfebqz57Z7hn4cG9uKb8w2BxdWxvfolgz9hGF ko6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=s63UUlIg; 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 q14-v6si10379368pll.277.2018.05.19.17.57.06; Sat, 19 May 2018 17:57:22 -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=s63UUlIg; 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 S1752509AbeETA45 (ORCPT + 99 others); Sat, 19 May 2018 20:56:57 -0400 Received: from mail-pl0-f41.google.com ([209.85.160.41]:33638 "EHLO mail-pl0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752188AbeETA4z (ORCPT ); Sat, 19 May 2018 20:56:55 -0400 Received: by mail-pl0-f41.google.com with SMTP id n10-v6so6699382plp.0 for ; Sat, 19 May 2018 17:56:55 -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=0JbLu40XfaNrN201yzIjDfj/32yqhf5UAEDL3dmALbs=; b=s63UUlIgg+EVsjJsd3MxF2xH7XmNDolY6kaMp99biNzLez/WLPBfd+w5seBhTMoYnl UQV6uoOTBarH6TuLYDYR9cBFKa5ELCC4z+aOuSL1FT04zwSCc8JSzbXeN1q6DexqbCL8 XbUhk+/fvZJtjkw6IXyjBBKiCnZ/FaAWZSViA= 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=0JbLu40XfaNrN201yzIjDfj/32yqhf5UAEDL3dmALbs=; b=AzR+QWWayxnB0Sql/rCF30FCq+giPwsdaCQLpZchBD6mRaqaZz83WUI4QZFVYGIx1x j3b0iljZkz1XrwO3Zitg5w4xja7rDhI1Wcpzgk6a4TvUJto6N+CB31WK9mfMz/zRYh5I tk2ry9Dd67AvnsFntnivR+L/IxokEUooTXbpphVIifgsLDGWHOtxW692IPiJDusufwds B7Y4lJnMZHHyGA5IosWoKEwVZHImwLKtVSOBKaBjfRImDA4CzSoH7tQkrtWuHp7puIuX xbFKDm/mS3WRNZ0pY3AzIFvGn9RF88+BRQu00/rt5hetzhVlj1uihF2CulJZ+vl7nTvw THcg== X-Gm-Message-State: ALKqPweL3yc6BCn0PDgxXDDl40XY65mxigCAlZKNb+YpJUvgEJmJCmFg bjh1lp93F8TlhQpeo1CDklpDZg== X-Received: by 2002:a17:902:76c3:: with SMTP id j3-v6mr14839368plt.15.1526777815385; Sat, 19 May 2018 17:56:55 -0700 (PDT) Received: from localhost ([2620:0:1000:1600:3122:ea9c:d178:eb]) by smtp.gmail.com with ESMTPSA id h8-v6sm14360567pgq.56.2018.05.19.17.56.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 19 May 2018 17:56:54 -0700 (PDT) Date: Sat, 19 May 2018 17:56:54 -0700 From: Joel Fernandes To: "Paul E. McKenney" Cc: rostedt@goodmis.org, byungchul.park@lge.com, mathieu.desnoyers@efficios.com, Josh Triplett , Lai Jiangshan , linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: Tasks RCU vs Preempt RCU Message-ID: <20180520005632.GA58902@joelaf.mtv.corp.google.com> References: <20180518183623.GA163151@joelaf.mtv.corp.google.com> <20180519022918.GV3803@linux.vnet.ibm.com> <20180519225905.GB134184@joelaf.mtv.corp.google.com> <20180520004938.GZ3803@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180520004938.GZ3803@linux.vnet.ibm.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 19, 2018 at 05:49:38PM -0700, Paul E. McKenney wrote: [...] > > > And the problem with wrapping them with rcu_read_{lock,unlock} is that > > > there would be a point before the trampoline executed rcu_read_lock() > > > but while it was on the trampoline. Nothing good comes from this. ;-) > > > > Yes, I see what you're saying. The data being protected and freed in this > > case is the code so relying on it to do the rcu_read_lock seems infeasible. > > Conceptually atleast, I feel this can be fixed by cleverly implementing > > trampolines such that the rcu_read_lock isn't done during the trampoline > > execution. But I am not very experienced with how the trampolines work to say > > definitely whether it is or isn't possible or worth it. But atleast I felt it > > was a worthwhile food for thought ;) > > I suggested to Steven that the rcu_read_lock() and rcu_read_unlock() might > be outside of the trampoline, but this turned out to be infeasible. Not > that I remember why! ;-) > > > I actually want to trace out the trampoline executing as it pertains to RCU, > > with your latest rcu/dev.. I think it will be fun :) > > Cool! > > In addition, if you are interested, it might be worth looking for fields > in rcu_dynticks, rcu_data, rcu_node, and rcu_state that are no longer > actually used. It might also be worth looking for RCU macros that are > no longer used. Yes, definitely interested. Will keep an eye out for such fields and macros. thanks! - Joel