Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1260981ybd; Wed, 26 Jun 2019 14:17:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfRDTmCKY9LE2e7lNBDG/z8qmkm/RLC5XFHWQ7ac1RkQwSfHQ7QMVyqJotfHWLgupOxdYX X-Received: by 2002:a17:902:724:: with SMTP id 33mr196980pli.49.1561583877374; Wed, 26 Jun 2019 14:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561583877; cv=none; d=google.com; s=arc-20160816; b=eqjakm5hiRVLurqCp3cInVhpn2lDDRUn+m1IGBzx6SwgABDARqy9KbD1WEMWfp9xuC JFmU5mFwgYQ2qhA40sYYvBslnkFrDeIffH31rO/RUu00gOV7R0FUAPWbgVi1jHsZwB+L FladrojUdxAKN1ZBUB36MT78qg+FBhQaeeQuCpYzVqwOeSe9b9Ost33SnkGbHAsySwlt X2ftutziTv6qJ9ez7lZHe10nocxso2pxhfEmO7isDk7/BOZgJwA+TqfyafDmaoOzgtqS QElZPYr5Blz+ujzKzZUTmM+35DjO7M4lonvJNF1ByHaMCFl1YPuvmipQ8ZeBHje/E8kP hXUw== 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=gvmyRW50uYuz0LuvATyGPI0uW8SQvuUBVNqYusKK+Z8=; b=tXqivaCMVCsbhukQHMsX5v3HAkjfqxOfASKb1WM1mAD7nWJQBGndIcRcIck0nsuaLA 0lFGefW2SiX9pK/f/xEPIo9f3gtRuHA8YrFETLgHuMYxJV3AfKLdizTntcR+Oup2liaw cw7Gj1LzT8/qJk/5ehYu/B/FsX6SQQ4ufEMt9QlhkP6LNKl2MwV9l/VWvkXUpx2ePxs8 vvmSsYXGwjs5xAnZW9bV25s34rFY/Lq9NspaDs0nAH9o5JHKRFPBpqOoQ6btlsPsBHS7 0lsBTWyOGUIBHh1Hp8s2xS/8Mlm/sN0/J03o0gVGXEEeJRDqCkRJt/Db9bD1QQKy9qYN NwUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=IkmKMN4B; 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 v20si2977183pjn.27.2019.06.26.14.17.41; Wed, 26 Jun 2019 14:17:57 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=IkmKMN4B; 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 S1726410AbfFZVQx (ORCPT + 99 others); Wed, 26 Jun 2019 17:16:53 -0400 Received: from merlin.infradead.org ([205.233.59.134]:48554 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726223AbfFZVQx (ORCPT ); Wed, 26 Jun 2019 17:16:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=gvmyRW50uYuz0LuvATyGPI0uW8SQvuUBVNqYusKK+Z8=; b=IkmKMN4B7L6D5gS8CGrtJk7BZ fxgCWW7+kGMiO8AO+KdV6K5MZALERUxDLgH7Rquq/DoacO59k4sClrSHn88mILg7iihclmh7KYCU4 rKJfzSFTpVnjKVqXKgSsEtZT+xkxahDHYaKHjuSfQXuuO39KuFLNA2AVZ9/0FAXOIDRFPrxnrNDV+ FU/OEqUxR+P0mKZJk7LtDVKGlvsNic4+8aZ4xRAcBm9A5bpsq/G46sP5LE0K7Hgd8/+MjE6+45f78 5aIXfQKIj/FNJPCUf4Az1CbLgMQkGIzMkAhKem/pmHOt+lFzbGppJMjiWVX5sAP61Rs1R8FrqMDOX l/xRueJZQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hgFH8-00026c-3W; Wed, 26 Jun 2019 21:16:18 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id EE44498198F; Wed, 26 Jun 2019 23:16:10 +0200 (CEST) Date: Wed, 26 Jun 2019 23:16:10 +0200 From: Peter Zijlstra To: John Ogness Cc: Petr Mladek , linux-kernel@vger.kernel.org, Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , Sergey Senozhatsky Subject: Re: [RFC PATCH v2 1/2] printk-rb: add a new printk ringbuffer implementation Message-ID: <20190626211610.GY7905@worktop.programming.kicks-ass.net> References: <20190607162349.18199-1-john.ogness@linutronix.de> <20190607162349.18199-2-john.ogness@linutronix.de> <20190621140516.h36g4in26pe3rmly@pathway.suse.cz> <87d0j31iyc.fsf@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87d0j31iyc.fsf@linutronix.de> 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 Mon, Jun 24, 2019 at 10:33:15AM +0200, John Ogness wrote: > Here are the writer-relevant memory barriers and their associated > variables: > > MB1: data_list.oldest > MB2: data_list.newest > MB3: data_block.id > MB4: descr.data_next > MB5: descr_list.newest > MB6: descr.next I think this is the fundamental divergence in parlance. You seem to associate a barrier with a (single) variable, where normally a barrier is between two (or more) variables. As you wrote in that other email (I'm stlil going through all that); your MB5 isn't desc_list.newest, but rather between desc_list.newest and descr.next. Remember, the topic is called 'memory ordering', and you cannot order singles.