Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3396796ybi; Sun, 2 Jun 2019 14:16:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdVEXsLB+eln+b1pjhfxgew7yCIuKfjTxlVDfUlQyJNgdBLzvJ/zsx+P+zMyv9XjGoyrUE X-Received: by 2002:a17:90a:e393:: with SMTP id b19mr25467611pjz.119.1559510186385; Sun, 02 Jun 2019 14:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559510186; cv=none; d=google.com; s=arc-20160816; b=yDNFfR6MEUZuAPew5zN38mZlcKAoRRbPSik22o6NCLWaNR57tdATPWgKJBmVO2pfB9 jJX46tU13uP1DyH4ym3XaI2QuXNXgHUX1dNr3/JsNa5ac4nP3hgSnB+m2piUyNFICz3M qhkQGpLow7Upg/FqFCBWL/fCL5hzRVfQm3/kTzEKwVVG+Us2kkcZOkXXi5eDJa8ReCOY QVHenGKOiYMS5rzuMEtfQnWp/EXXm/LeSmqXlBeEIFhBEIzar7qPlMVEfeOFUUJP+lTG jSsn7KtOgxgLh3dyX+5Qc/ndLWjLRvjCEhlRP601OrY+jGuavJBuYL5Jcsozc50L1plY wRAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HC8vtrRsh50Ohc3EaIB0NoebMSo23njywbCwxitxUSo=; b=iv0q6Sl6xVn03RgiXIXgY4dM4ODTRGsjSgC8GLMHdeAtpGeGo5jUIid/FM/Aum4mDT UzYhqjUj7djft+Km0KC8VN1gPMdrCTBNDqy+AK6qY0brPw9jnjbUkh/kIzi/b1KIVTTo yvy8CBtkL1GE1SUorX8ksCes+AAVEWtqEaFAV/qgZdMvSWpLwWdShuTexTgg3oJI4Vu+ 78/qWEzkKfizDgVJfIPJyGgaoc99zHkS3XvsXaPgwm05VwE6x4WbG09wv3SwPZ6erCki /xm7t+C8h/BSHx7+nJyWYbTpVHIPiHpeURAt8HCH6fTigasm3Psw1PV8Lb1b19x8lwGZ 2a9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=G05oV6yG; 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 x1si15314139pjn.51.2019.06.02.14.13.21; Sun, 02 Jun 2019 14:16:26 -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=pass header.i=@linux-foundation.org header.s=google header.b=G05oV6yG; 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 S1726968AbfFBVC1 (ORCPT + 99 others); Sun, 2 Jun 2019 17:02:27 -0400 Received: from mail-io1-f46.google.com ([209.85.166.46]:40572 "EHLO mail-io1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbfFBVC1 (ORCPT ); Sun, 2 Jun 2019 17:02:27 -0400 Received: by mail-io1-f46.google.com with SMTP id n5so12645942ioc.7 for ; Sun, 02 Jun 2019 14:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HC8vtrRsh50Ohc3EaIB0NoebMSo23njywbCwxitxUSo=; b=G05oV6yGANfGUrsafNDMFdY+sdiwhud8O9hlc5blEpxavx9e8NMec2fjDyxse4N94X 2a89tU71cAzexNCkHgP9PRg5MZKqWwfvM5tdRQOUzBE+IVLhk0nxFDg1nKUAGhNgYJWK OTOxrwoH4oo/4pDSoZ0Fkojiw/sCTsCbJPv9w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HC8vtrRsh50Ohc3EaIB0NoebMSo23njywbCwxitxUSo=; b=FTcHSl3nz+Mv/4Y4+d9/gYI1rRZ+WQNXh90HXKh+RXO2KnqFXo7NwwkKtt+1dkD9Nq xJUrptdw+ZShPAr2JpKwDmu90j/ZbEgyvbVo9Gc+3/tYYxD1axCadeXmatunPPzXtqKs sKAtla7cWGzxrZFHGDkGxhwAKuhtsRNf4wVBcnShf6ayuyWix1HqADowMFTQgr/9zgir SeqvrHUIbSlX59+JdhYSmUhwDCd5ypb9XvHHFMdiIg6wrIa78q6De8VxS5IYprUsqJ0m Dnjrkn8+I0cZrCCT/eik+EqHgAIv10j0pOC++1mdxcrnHVoIuJcVc4Yl2Ei2pHBVriUG z4RA== X-Gm-Message-State: APjAAAWJTlj5Iz4C1Huov3XRjiX3jZmnTdAgKHX0abaQliuMRkqGUBTs rbUTgc6ZCwY4XNdG5UPtuj1dpwUGSK8= X-Received: by 2002:a05:6602:2285:: with SMTP id d5mr14055239iod.196.1559509346192; Sun, 02 Jun 2019 14:02:26 -0700 (PDT) Received: from mail-it1-f171.google.com (mail-it1-f171.google.com. [209.85.166.171]) by smtp.gmail.com with ESMTPSA id y18sm4154690iob.64.2019.06.02.14.02.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jun 2019 14:02:26 -0700 (PDT) Received: by mail-it1-f171.google.com with SMTP id n189so5150651itd.0 for ; Sun, 02 Jun 2019 14:02:25 -0700 (PDT) X-Received: by 2002:a24:5652:: with SMTP id o79mr15076656itb.164.1559508868756; Sun, 02 Jun 2019 13:54:28 -0700 (PDT) MIME-Version: 1.0 References: <20150910005708.GA23369@wfg-t540p.sh.intel.com> <20150910102513.GA1677@fixme-laptop.cn.ibm.com> <20150910171649.GE4029@linux.vnet.ibm.com> <20150911021933.GA1521@fixme-laptop.cn.ibm.com> <20150921193045.GA13674@lerouge> <20150921204327.GH4029@linux.vnet.ibm.com> <20190602055607.bk5vgmwjvvt4wejd@gondor.apana.org.au> In-Reply-To: <20190602055607.bk5vgmwjvvt4wejd@gondor.apana.org.au> From: Linus Torvalds Date: Sun, 2 Jun 2019 13:54:12 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: rcu_read_lock lost its compiler barrier To: Herbert Xu Cc: "Paul E. McKenney" , Frederic Weisbecker , Boqun Feng , Fengguang Wu , LKP , LKML , Netdev , "David S. Miller" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 1, 2019 at 10:56 PM Herbert Xu wrote: > > You can't then go and decide to remove the compiler barrier! To do > that you'd need to audit every single use of rcu_read_lock in the > kernel to ensure that they're not depending on the compiler barrier. What's the possible case where it would matter when there is no preemption? Linus