Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1988124imm; Thu, 12 Jul 2018 11:07:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe6ncYS1xvwvRD36dh9wnCgXLIJB4G434Ur948g49K4aNfVI2xjjINfG6Gtpan1ybHCnDGf X-Received: by 2002:a17:902:b28:: with SMTP id 37-v6mr3062659plq.201.1531418829422; Thu, 12 Jul 2018 11:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531418829; cv=none; d=google.com; s=arc-20160816; b=g1Vybf0U2mx6DnK8D66plVUsK+rgSYP39o9XzlZy6XWR7suhZRqfntbyMObjxfF87g vUGBha8rCMfma/mWLysEXwFxJPxTrg90hrM9MTIgEiYLKLwSMqPDtmzlQjjh2jWM4x2/ zHFtx53Pc9JUvbjbkiTxVREv29VObLhvjI2X9qcVHMVE+aM1L82jPzNaSgmLbcMUZaRp ZdV4P1OD3U31GMKbaIE0ys8OjIAjNvQGzUV93nc8r+MA81jrV3BA5mB4jj2w3LCnH3zm GNQ55dfN5JIi6TDJ24n3uW8KYl6pC0QTT/SZrvKHqE525tRBa3ZDOnEz4Sm1kvBdq3Rw yYhg== 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=nfspCBSPNkp7AFlPObQwbxQ9nI7MwCFsjprgoBrrrD8=; b=FSnEZVdLHdzM+ob1I/WqIjaT38bqg1gCWleVT50FRT5UAiP4CdyvOmouMQF7bkDblJ OpVybrqbCLuaG4xYC5GqO7Mc9Yvzcy8axn8mUiIFYRM5QtaN9BZmW3p7rUbMofozSvlf WCj9g7mHZCn+C0gx0WAYrdOhSrVPuX7nTwz3TCQFGF80GKF8kdptWuKowIGJGNjr6HyC BuryJtSefz8nPxcEogmVr1ILn2L6n4HNxH+hZh4vplS3+23R4t6HVPZr2ft0Gni2M+wh UKnOhMvwnIlaEtz5ujJESTjdOechL+GvrlEIFPw/dVWTYA5TBS6BYsZx8Gebwk609ZXn qjDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="q/VUDUBe"; 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 w15-v6si21984886plq.455.2018.07.12.11.06.54; Thu, 12 Jul 2018 11:07:09 -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=bombadil.20170209 header.b="q/VUDUBe"; 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 S1726728AbeGLSQF (ORCPT + 99 others); Thu, 12 Jul 2018 14:16:05 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:44852 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725967AbeGLSQF (ORCPT ); Thu, 12 Jul 2018 14:16:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=nfspCBSPNkp7AFlPObQwbxQ9nI7MwCFsjprgoBrrrD8=; b=q/VUDUBe7Cz55Qip/EB9UzcGn l/5PvJx6q6BxwtdTvnB2SBFIRO7XNVhWApqdBtA0ebDnNB14UtEQeCvg3+tjaoy6PImoBhOqRXwR+ 4m7lKMCtlg31FEqdVCjFyYbAEZ25ZAEHOZamxTPqLEmlkM4ewILdlm63wBvn23/hS9SfUkHvnR6EG Y1qvle8bdgLPn1/iorOHzmFp8F5Y5lHFTGF7mlBof0MlCUNfF+bT78FiauAogmFfe7YYtbd8tS5EM +Me3xxjqUV10GOT0mteGS7pdV/66MGTQdvOM75nGJ+39w8lHLTapWTeXJg2ba74FgyWWhIDZN7iNt E8x6De89w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fdfxp-0003eV-Ue; Thu, 12 Jul 2018 18:05:14 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C85C220289331; Thu, 12 Jul 2018 20:05:11 +0200 (CEST) Date: Thu, 12 Jul 2018 20:05:11 +0200 From: Peter Zijlstra To: "Paul E. McKenney" Cc: Alan Stern , Andrea Parri , Will Deacon , LKMM Maintainers -- Akira Yokosawa , Boqun Feng , Daniel Lustig , David Howells , Jade Alglave , Luc Maranget , Nicholas Piggin , Kernel development list , Linus Torvalds Subject: Re: [PATCH v2] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire Message-ID: <20180712180511.GP2476@hirez.programming.kicks-ass.net> References: <20180712134821.GT2494@hirez.programming.kicks-ass.net> <20180712172838.GU3593@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180712172838.GU3593@linux.vnet.ibm.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 12, 2018 at 10:28:38AM -0700, Paul E. McKenney wrote: > Look for the uses of raw_spin_lock_irq_rcu_node() and friends in > kernel/rcu and include/linux/*rcu*, along with the explanation in > Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.html > > I must confess that I am not following exactly what Peter is calling > out as the failure. My best guess is that he is leading up to his > call for RCsc locks, but I might have missed a turn. Yes, it is part of my call for RCsc locks. The locking pattern is fairly simple and shows where RCpc comes apart from expectation real nice. Yes I helped clean up the barrier usage, but as always it'd be even cleaner if we could just do away with the special barrier entirely.