Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2726885ybl; Thu, 29 Aug 2019 12:02:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0wdhcOQOQgjUIG3CfCkIy/DrC59K5EtU/DubS2ZizV4YgFxV3w5Jbbfid0zQlVdmGa696 X-Received: by 2002:a65:6096:: with SMTP id t22mr10057777pgu.204.1567105321370; Thu, 29 Aug 2019 12:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567105321; cv=none; d=google.com; s=arc-20160816; b=Cf2TTV24neCm/P+Tg66+dURD+wsAutPPtH4omfExKkMH0isWLMWE1+N65XEJNZoL5P 2tV/LlS7DhpmF0h4Z4BZiwe1EaqEqzWW4i1Xx+Rjd01dTzY7StaPkGgJg1cKSHCmceda jhvzgiwZMJQfRSq+2LuqruQMpI9azUPsssIGElJtVLzEJYE7FvBG362frsgacPCjdzay OgmEec101QBxnztRVq0aPDzFdYaLL0QTc9y2sVaTZdwckFREzDwHDWLJqY1BU3D9PeMQ wDC3Brhk/2eKAbeZtYJ/A1H3QxTnGs/+0AhsXao618lGxpFA6OnO3vKp88UADsrCc/8t 4Qaw== 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=YFO4ToJTqzSQELe3odwwkEfeFs84ACj71p8BdwBVqGc=; b=FyqfRHGf6wynycMRq26PZ/E0qYsVnsnkTTfNWVzAJ4yCmVJxbhRaYyEb0GpZEH95jx DVZjj6s3kBFFLtShQqfXkEolN34exqZJuuVSDdpfuKNK5mY0okX8h93mFxjJSZB/14cI dVLhmgDohnuCXX0VSU0XO0+HOejSvAYYNPGbmnDb1AL9Kf7tnwZ3Ug7kjN1H7rA09nrI L6k6neqRn+QLgG2Pwx2pnQ6fE3i6qUsMJ34tmZQWSwp2koL4Qjrn8AaR8JYVhZqIPlQk TK+lWY3orjdIdCdg24QyluyHJdGSpTrdZbFJEUEHd1CCx87UNquuA8QUSlYxl5Ck7Npo EqNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=d0VFIDow; 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 i8si2918855pjx.0.2019.08.29.12.01.44; Thu, 29 Aug 2019 12:02:01 -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=@joelfernandes.org header.s=google header.b=d0VFIDow; 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 S1728438AbfH2TAt (ORCPT + 99 others); Thu, 29 Aug 2019 15:00:49 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38711 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728156AbfH2TAt (ORCPT ); Thu, 29 Aug 2019 15:00:49 -0400 Received: by mail-pf1-f194.google.com with SMTP id o70so2699685pfg.5 for ; Thu, 29 Aug 2019 12:00:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=YFO4ToJTqzSQELe3odwwkEfeFs84ACj71p8BdwBVqGc=; b=d0VFIDowYpvAl/u3SmvC0to24Kdmxtpz2/UnnHd8VZyq1Od8buoXAZgDmyshy3xKpv E4JQSe8CmUGbPMBhy30yzfA9+zY3kE2Oveu4m/7CuPoW/IOsvPx2E/fQ8csrW2zCDVFZ YCaTL8mvBoul3+p5hEYzMhXdMc/Th4xD/Oc+c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YFO4ToJTqzSQELe3odwwkEfeFs84ACj71p8BdwBVqGc=; b=r9VHQOIxyW7QqTD2vtzf0iQdhppXO/8alBoZyxmB2AkUGVJqSxLr6Z5b8a7tGmxU6A f+H8FgzPsWFnkhzgDKD+/zuEvjrr6MhQNOlu9DwpCFtok6B5ZTMZyNVMEVuXDIvOdvO6 /qwZ1TZMGi08M/EveDUYv3KcQrykCYd46jd5Xy0xthcJq9zUqXsmOAAnAhh/kF7c5ZRQ 1sbS5zoT0glYIqTb/NFF/vNPpuJtN2y9qoaDlttwUzKBRmY9G+Q+Q1hM03nSzO0N+S13 NC2vqNWfJL4z6Nra5DrgsiU7Dj8JhWNjVXTRebzaJ1xehNOz/VI0FnCrqqvF/uq3rJQ+ i9UQ== X-Gm-Message-State: APjAAAV3iK4q24q7BRsF3/hqKloP8BwCe4SXubSBvGPxIyUJpN5x+/ff nLLaxNdLHsQOnwQkp0IqFj5cu4d8CPw= X-Received: by 2002:a17:90a:d345:: with SMTP id i5mr11528135pjx.16.1567105248246; Thu, 29 Aug 2019 12:00:48 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id 5sm2846842pgh.93.2019.08.29.12.00.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 12:00:47 -0700 (PDT) Date: Thu, 29 Aug 2019 15:00:46 -0400 From: Joel Fernandes To: "Paul E. McKenney" Cc: Andy Lutomirski , LKML , Frederic Weisbecker , Jonathan Corbet , Josh Triplett , Android Kernel Team , Lai Jiangshan , "open list:DOCUMENTATION" , Mathieu Desnoyers , Mauro Carvalho Chehab , rcu@vger.kernel.org, Steven Rostedt Subject: Re: [RFC v1 2/2] rcu/tree: Remove dynticks_nmi_nesting counter Message-ID: <20190829190046.GB115245@google.com> References: <20190828214241.GD75931@google.com> <20190828220108.GC26530@linux.ibm.com> <20190828221444.GA100789@google.com> <20190828231247.GE26530@linux.ibm.com> <20190829015155.GB100789@google.com> <20190829034336.GD4125@linux.ibm.com> <20190829144355.GE63638@google.com> <20190829160946.GP4125@linux.ibm.com> <20190829165407.GT4125@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190829165407.GT4125@linux.ibm.com> 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 Hi Paul, On Thu, Aug 29, 2019 at 09:54:07AM -0700, Paul E. McKenney wrote: > On Thu, Aug 29, 2019 at 09:21:46AM -0700, Andy Lutomirski wrote: > > On Thu, Aug 29, 2019 at 9:10 AM Paul E. McKenney wrote: > > > > > > On Thu, Aug 29, 2019 at 10:43:55AM -0400, Joel Fernandes wrote: > > > > > > [ . . . ] > > > > > > > Paul, do we also nuke rcu_eqs_special_set()? Currently I don't see anyone > > > > using it. And also remove the bottom most bit of dynticks? > > > > > > > > Also what happens if a TLB flush broadcast is needed? Do we IPI nohz or idle > > > > CPUs are the moment? > > > > > > > > All of this was introduced in: > > > > b8c17e6664c4 ("rcu: Maintain special bits at bottom of ->dynticks counter") > > > > > > Adding Andy Lutomirski on CC. > > > > > > Andy, is this going to be used in the near term, or should we just get > > > rid of it? > > > > Let's get rid of it. I'm not actually convinced it *can* be used as designed. > > > > For those who forgot the history or weren't cc'd on all of it: I had > > this clever idea about how we could reduce TLB flushes. I implemented > > some of it (but not the part that would have used this RCU feature), > > and it exploded in nasty and subtle ways. This caused me to learn > > that speculative TLB fills were a problem that I had entirely failed > > to account for. Then PTI happened and thoroughly muddied the water. > > Yeah, PTI was quite annoying. Still is, from what I can see. :-/ > > > So I think we should just drop this :( > > OK, thank you! I will put a tag into -rcu marking its removal in case > it should prove useful whenever for whatever. > > Joel, would you like to remove this, or would you rather that I did? > It is in code you are working with right now, so if I do it, I need to > wait until yours is finalized. Which wouldn't be a problem. I can remove it in my series, made a note to do so. thanks, - Joel