Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3990238ybv; Mon, 10 Feb 2020 10:09:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxV790VK6woBz8UNPAhBcuz6jRUk1ktRJvrcokObaPhs5/onbwTRnL64rP8YPyWgX4cntHO X-Received: by 2002:a9d:6446:: with SMTP id m6mr1918124otl.122.1581358150548; Mon, 10 Feb 2020 10:09:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581358150; cv=none; d=google.com; s=arc-20160816; b=pNEhluU3/zb6A8eveeH/5NjROB187zE693MF86LUsb+mRm18AgKPdIV7q26/u1gVWQ JRKOLYw+GQXi3vBoF+kL7dPVksW7hnB7MbPOdtXMpzGtBzWKVOp4+O9s5CT7gvgMysDR 08Pjjo/ZO/2IyyZ/xSR/fu8KyeCh7+J8xlNz6jmTJPwerGMJtbmofTDtGcz7rElCbda/ u/tW0uTk8LQmrml3xgzKpU6Njsd8mLi7ez0F2IM8XHr0BA7LoothLPVo9U09mKTZCfkk UQCRroOckjB1Ph/acnPvxLusxHVi7VbhNqD4+oPgpHXCiFyqGmxn+rWV/kNYWfvkwBYD Zz/Q== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=HwDBSsGaP+//LeQy0vNeC/TQ+fig5hH60iWEJADE0P4=; b=TOLVtvG8PaO/fKL6LUQOCwOAto/EyWYXwBhASCfm/h68T2N1y9isJGuaVwdNCXiy22 Ui2saVR/jG4mLWtHF9qWlNQTCYrt3q55d/xNd/YOsN8Fn/wH4+YjP0FtUbdw98PGiwyS LZouY3DKdwqXCcMxFBg0N5VOsmsoIorRAFv6XPfAyMhKbqv7voNTgmE9xW+7owL052uu 3Rn3fNxcHk4MZRpRDaSALP/f605XMX4icAaUnBFZp+HaP7CG7ii32ZoJg94daNT4jW2K 7c7wlUIuH7UEPStVgCwBzgNcHq/stGrrqY3z/gTVsEhGcuj5jcdZiN6JvYXm6ODU3lJh qlPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cMOKQJdx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f190si495461oig.229.2020.02.10.10.08.58; Mon, 10 Feb 2020 10:09:10 -0800 (PST) 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=@kernel.org header.s=default header.b=cMOKQJdx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727575AbgBJSHt (ORCPT + 99 others); Mon, 10 Feb 2020 13:07:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:41938 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726831AbgBJSHs (ORCPT ); Mon, 10 Feb 2020 13:07:48 -0500 Received: from paulmck-ThinkPad-P72.home (unknown [62.84.152.189]) (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 9E09A2085B; Mon, 10 Feb 2020 18:07:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581358067; bh=1sM8AtptlQsckSDtBEnBFE9IPZB3fksS+0HDhGJ+dJg=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=cMOKQJdxaFxq2ApEmJf1PevgGmgXVE5jrc8R0UHdtCxG20ESA9LmVsB2LRNB90GMy VFrD6TrDPR8bH+erOL53KbkKprziQGU4GdhWULCffOCsFJrw3P9eMU3cQxMZt6rSD8 B8dtKhbJbAx8v3aAYc7gldjffniXgQC1jeJDnNoA= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id DF6A13522700; Mon, 10 Feb 2020 10:07:45 -0800 (PST) Date: Mon, 10 Feb 2020 10:07:45 -0800 From: "Paul E. McKenney" To: Steven Rostedt Cc: Peter Zijlstra , Mathieu Desnoyers , "Joel Fernandes, Google" , linux-kernel , Greg Kroah-Hartman , "Gustavo A. R. Silva" , Ingo Molnar , Richard Fontana , Thomas Gleixner , Josh Triplett , Lai Jiangshan , Arnaldo Carvalho de Melo Subject: Re: [RFC 0/3] Revert SRCU from tracepoint infrastructure Message-ID: <20200210180745.GA4947@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200207205656.61938-1-joel@joelfernandes.org> <1997032737.615438.1581179485507.JavaMail.zimbra@efficios.com> <20200210094616.GC14879@hirez.programming.kicks-ass.net> <20200210120552.1a06a7aa@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200210120552.1a06a7aa@gandalf.local.home> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 10, 2020 at 12:05:52PM -0500, Steven Rostedt wrote: > On Mon, 10 Feb 2020 10:46:16 +0100 > Peter Zijlstra wrote: > > > Furthermore, using srcu would be detrimental, because of how it has > > smp_mb() in the read side primitives. > > I didn't realize that there was a full memory barrier in the srcu read > side. Seems to me that itself is rational for reverting it. And also a > big NAK for any suggestion to have any of the function tracing to use > it as well (which comes up here and there). Yeah, that was added some years back when people were complaining about three synchronize_sched()'s worth of latency for synchronize_srcu(). I did prepare a patch about a year ago that would allow an srcu_struct to be set up to not need the read-side smp_mb() calls, but this means longer-latency grace periods (though nowhere near as long as those of synchronize_rcu_tasks()) and also that the "fast SRCU" readers cannot be used from idle or offline CPUs. But an easy change if it is useful. Thanx, Paul