Received: by 10.223.185.116 with SMTP id b49csp843119wrg; Fri, 23 Feb 2018 07:40:06 -0800 (PST) X-Google-Smtp-Source: AH8x224bqpu3eh05ozximegqKyci/iRrfYEpN9sooe6I+mlcGLaqlEjYuUdozh+EmezmvPXS9029 X-Received: by 10.101.100.214 with SMTP id t22mr1783016pgv.333.1519400406810; Fri, 23 Feb 2018 07:40:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519400406; cv=none; d=google.com; s=arc-20160816; b=Qs1x6yuNaZU9Viax1bVEZMjIdS8DSQlP9nubSepJC5ofHm1vgdTcHJhtSFYy6H0535 ZyJlrpLtGRbqvOExUMGlAdtJaTsnPYFQOVyC949ul5oF5qhSpGfMHXiF+noDZXZQFWdN c6w21F16aUWQXSFH2cnJc6kr63Sspm3FCf5kOc10yDgbq7z+Z92aZoLFmtqI4QO228RI 3EQQX03VN8GR5yvS8W7t03Dn58jT3WZ4BMFTKIE1xTa1PrmtCzRS4fGl2clqkp4PB/q9 yiXcrPkyAVnOJxdSlB0nxp7LFgDlNBDCqICxUJOWzZwYQjXxab+dL9jSxIEKCbKs1L0r Q54A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=/HawTF/uigO8iFducgITIiq7bG8iAFpgrnZ4DORq67U=; b=s5COrqBGXCqPFdMWTIwRvMxTG3CZcLCXOdivQjB2zmeZzpbrHozUZp9SMXn588hNs5 TL6FPNfjdzt8hPUjG+5XFCGn1vx7Mh2eVMlVUN5C5i8bmCVeWUL3i73DW5MzEn6iT11Z NvWTac517BmXILNQybyJkIVHkMSaS+d6AEzK2HU8E11tayMgEwl8dp/q9WHBAhbJqlI5 nq5tY7bNqWU9c6XbwnKv0EysXKVGZp6D83J0efziFdWnAJcybgBRZDTV1ky4CfAmpeiW lwklJEQyKHtD/fURfDb+XkuTSRm3rV9MZ8inuDNLVH7KiwBM0tD3hYdE+MENpeNuJb9w 4c8A== ARC-Authentication-Results: i=1; mx.google.com; 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 x7si1991600pfd.84.2018.02.23.07.39.52; Fri, 23 Feb 2018 07:40:06 -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; 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 S1751912AbeBWPio (ORCPT + 99 others); Fri, 23 Feb 2018 10:38:44 -0500 Received: from www.llwyncelyn.cymru ([82.70.14.225]:55552 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751405AbeBWPim (ORCPT ); Fri, 23 Feb 2018 10:38:42 -0500 Received: from alans-desktop (82-70-14-226.dsl.in-addr.zen.co.uk [82.70.14.226]) by fuzix.org (8.15.2/8.15.2) with ESMTP id w1NFc7nx002276; Fri, 23 Feb 2018 15:38:07 GMT Date: Fri, 23 Feb 2018 15:38:07 +0000 From: Alan Cox To: Nikolay Borisov Cc: LKML , "Paul E. McKenney" , mathieu.desnoyers@efficios.com, Peter Zijlstra , parri.andrea@gmail.com Subject: Re: Reasoning about memory ordering Message-ID: <20180223153807.64666cfe@alans-desktop> In-Reply-To: <0db16ef6-c805-b1f6-527f-8fec149e3df5@suse.com> References: <0db16ef6-c805-b1f6-527f-8fec149e3df5@suse.com> Organization: Intel Corporation X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Given this is the current state of the code (it's part of btrfs) I believe > the following could/should be done: Is there benchmarking data to show that a custom lock is justified (especiaally given it's going to mean btrfs and rtlinux don't play together nicely since it won't be able to see the mutex lock and do priority boosting ?) Alan