Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp408508pxu; Tue, 6 Oct 2020 09:13:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynE1Ol8hoz4uh0ro46eZiiOnG1TJ/F+4qnx7rSHPhEja1twaBTvQ6csIFdlCuvZOIjYPXT X-Received: by 2002:a1c:f005:: with SMTP id a5mr5648895wmb.160.1602000792818; Tue, 06 Oct 2020 09:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602000792; cv=none; d=google.com; s=arc-20160816; b=QAc5uvnLSZJEz8FDRAAE/xBL0CAoG3n+wjI8CnbsZcYl65mR4+7GEYOFbs9HmHQ5wK At1VgL97KezR85wSFA0BTbz2lup7n02IAtdkY6VknP4On2foKdy2CITRnCAsglmwMJgN rqeuYZeCto3KcUJSE5V+c+BImF4WM4TDej44pXw49yzKVsKSuJvLfStyBzQvRtb38lbA EQ4ptLai9J9K6kEbnIQc+ZbUEn+4VsuwfwtqHUON1vKSaMZy8rYlPNt885/sNRk5W98q x40iSeJE9GlLJDA5hLaZWROHkYWuMSTyzPRW7An5A3UB6bJ1E/HkHRB2jVWTLmH9MzeS fRWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=xyPXvg+5OsVxd2W4E62a4imGJf8Qb1D4ochSKXs/fdE=; b=L1S9JCNDEwjpipmtzEJpblJuoB91QETfU2mgZhV9J55EsWBhUguN4qseDLKvyZJ019 iIhZpSwxAnGXA65RG5cNNyH6bQFvKieZGF30Z6mpwd8pKYLfUZxf7lghuRtb0oMr316K bNF5pfjAUgUIbp7Bn41wzLc5AdThoZ26/wIihbWaQsveW60TfEU5Do0/n5177+oKcAf1 FZb02GxHb8UXZtBdLw5qSPNBK3HaOzQQZTbGIlaMPICJLKA4I6mcpEjvzvrSg2jXTpdS X+uX+JkCx7gDgp9FIoQoy3mp2BNjd+pm1ezWyoN8cwDq4WDpibzgBURyGNYR+THmWxeu YnRw== 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 b59si2780313edf.117.2020.10.06.09.12.50; Tue, 06 Oct 2020 09:13:12 -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 S1726433AbgJFQLK (ORCPT + 99 others); Tue, 6 Oct 2020 12:11:10 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:42868 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725769AbgJFQLJ (ORCPT ); Tue, 6 Oct 2020 12:11:09 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 096GAdjf005889; Tue, 6 Oct 2020 18:10:39 +0200 Date: Tue, 6 Oct 2020 18:10:39 +0200 From: Willy Tarreau To: "Paul E. McKenney" Cc: David Laight , "'Nick Clifton'" , Peter Zijlstra , "stern@rowland.harvard.edu" , "linux-toolchains@vger.kernel.org" , Will Deacon , "linux-kernel@vger.kernel.org" , "parri.andrea@gmail.com" , "boqun.feng@gmail.com" , "npiggin@gmail.com" , "dhowells@redhat.com" , "j.alglave@ucl.ac.uk" , "luc.maranget@inria.fr" , "akiyks@gmail.com" , "dlustig@nvidia.com" , "joel@joelfernandes.org" , "torvalds@linux-foundation.org" Subject: Re: Control Dependencies vs C Compilers Message-ID: <20201006161039.GF5822@1wt.eu> References: <20201006114710.GQ2628@hirez.programming.kicks-ass.net> <3dfe7daed3c44f46a6989b6513ad7bb0@AcuMS.aculab.com> <20201006133115.GT2628@hirez.programming.kicks-ass.net> <20201006142324.GB416765@rowland.harvard.edu> <20201006144302.GY2628@hirez.programming.kicks-ass.net> <47bfda8f-304e-5283-c6d6-0753037b0b2c@redhat.com> <1dabfd1939f348198678121f94d6c9b2@AcuMS.aculab.com> <20201006155052.GJ29330@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201006155052.GJ29330@paulmck-ThinkPad-P72> User-Agent: Mutt/1.6.1 (2016-04-27) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 06, 2020 at 08:50:52AM -0700, Paul E. McKenney wrote: > Comparing 25+ assembly languages to but two compilers most definitely > motivates looking hard at doing something with the compilers. +1, especially since the kernel is not special; anyone working with threads faces the same issues in userland, which are often hidden behind the implicit whole-memory clobbers of certain operations or the call to mutex manipulation functions, but which become a reality again as soon as you go slightly away from these and try to use lockless mechanisms. Willy