Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3950343pxk; Tue, 29 Sep 2020 10:08:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz52Z6b2PKPyN38DWOpH6Eyc6ygj4hCihNLFI+f9GXkd8m8+KNaamnyTY8OfL7dXXGW+ead X-Received: by 2002:a05:6402:1697:: with SMTP id a23mr4386184edv.195.1601399283170; Tue, 29 Sep 2020 10:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601399283; cv=none; d=google.com; s=arc-20160816; b=nM7MFsnrXG3murV//w+I54rg1+jOtMKD0rSX6iVb4eOI80aF8X+DIuXIj236asOtX3 Rx9BxQV8L161/f7Xhoc4SAlqukCGDEulA2Tgru+5+GlDZK4sYA86wf318HR99xQflqgw +lqiMwsC6BV3OK3b32M23MO+E6yk+1JLRgvvqSZxSS0gO3l3brgC6Xf/BgZtsdL73Zmr JvL+ys3PWsOGEYhB7cW8PQYHEF8jeFGX4vk8K5QUzoPnX+9SiEnkrS5oje3c9xIyNOrs jRPAcJYny2A7J8sa5sauSyJalv3QkA7xVN+0/hqI8Lq3hK2LOcrfYe0jhRwYCM71zyS5 DJ0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=qWfqgWWW2kvPEQcFHEu7ttfpZcJG9rTUuqHtaC7lkBY=; b=FVzrMNMcnzqSz9CIv4g0q+FI+7X0Kb8UfRXOygCvUW/HwHQRqgOCt3HYpvE58MXQ+h RBzJLjGpnQDdxtfXcz9/p0wedhqw9Sd2nTAFim93phLz1ok1b8FQlvl27QYan0ZUwTui NJzcS2sGHmjcfXqnD7rrOnETbFDnXV0ILwYPjXyci2IzQ8QD0u5SfVqmomDl0d+kH/SQ 0h9oYZTpYb+tG+uycKNu/TvRqB+d2Vi8i2WPsp03sUa+2lw2UAJd1uRmmjL6p5OMWfHW XLEkK3W6AowRugvzN/5ML4+H/dt1kuXoXujNo/mqe/SRJqaoGMbjbEjHaUa8D/zRcKUK 3ooA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o17si843548ejc.318.2020.09.29.10.07.39; Tue, 29 Sep 2020 10:08:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728767AbgI2REw (ORCPT + 99 others); Tue, 29 Sep 2020 13:04:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:43806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbgI2REw (ORCPT ); Tue, 29 Sep 2020 13:04:52 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E5DB2208B8; Tue, 29 Sep 2020 17:04:50 +0000 (UTC) Date: Tue, 29 Sep 2020 13:04:49 -0400 From: Steven Rostedt To: "Paul E. McKenney" Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , kim.phillips@amd.com Subject: Re: [PATCH] rcu,ftrace: Fix ftrace recursion Message-ID: <20200929130449.12c474a5@gandalf.local.home> In-Reply-To: <20200929165640.GV29330@paulmck-ThinkPad-P72> References: <20200929113340.GN2628@hirez.programming.kicks-ass.net> <20200929103620.06762622@gandalf.local.home> <20200929144105.GU29330@paulmck-ThinkPad-P72> <20200929105416.757c47f0@gandalf.local.home> <20200929165640.GV29330@paulmck-ThinkPad-P72> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Sep 2020 09:56:40 -0700 "Paul E. McKenney" wrote: > > Well, I think we should actually apply both, but the comment needs to be > > updated, as it will no longer be outside recursion. And the comment is > > wrong now as well, as its only outside recursion protection for the > > assist_func(). > > > > But it does prevent it from being always called for perf. > > > > * Make notrace because it can be called by the internal functions of > > * ftrace, and making this notrace removes unnecessary recursion calls. > > Fair enough. ;-) > > If I don't hear otherwise by late today (Tuesday), Pacific Time, I will > update the comment and pull it into -rcu. If you guys have some other > route to mainline in mind, you have my Reviewed-by. Either way, just > let me know. I'm currently testing the recursion fix and will push that to Linus when done. But you can take the comment update through your tree. Peter, are you OK if Paul changes your comment to what I suggested? -- Steve