Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp891145imm; Wed, 22 Aug 2018 14:36:07 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyijTi7Gc0XxZ9d38/WCiI0MasRjEjTBtdLAf/uMAOl5Mz6HMCXd6OlHc+GMIlGGJGgMgXZ X-Received: by 2002:a62:858c:: with SMTP id m12-v6mr59856303pfk.173.1534973766977; Wed, 22 Aug 2018 14:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534973766; cv=none; d=google.com; s=arc-20160816; b=SmYw/TsIibiqo5MaWPM9XkU+yFBEo4tCc9jny60o2ZcYL+o0ejp6luWrB4nPrdAPtR AT2Ehmr8p59hmkoZeXtgasEpUr0dpNhL4TPLZRsITamEDxANLZjbkf5Sh0qgfNTOFPJF 9pK2zltPGCXPMfiME0hbSb4kreei2oB9dD2cEzEgar2/12flJ1KCjatA39rRFmYsZ+K3 hlj5kG59q4YLhxk7wMcr3dBlciz6KEjLeIhrfNjilRmOopJ+ZWaq+pfXgnsNy67QC3jv moamMVMfIYj5KVRm0WdgAM+Apn5f/AzON1SZ0i6soxu0GNMiuferEmpCIegfdzecfZYV fpcg== 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 :arc-authentication-results; bh=oZSIBmCqcgJFrr9/RKL0TCJ+ZayHpNkL6FQD0XF9SR4=; b=HIIH1tkWABFtouO4Z2ImobMsRSFOMi3HT7OoBHcnUOW4OWlb4vAD0QVlV9bRIKilMF c673cMKNZihsac49VW9F7t/ug8qcPVK/ifjb8692aq/S7sA7NZGLKdkj2ic8BvbP+xKe ZCQVN4Kn0RB7J4W7miIkZl7EIgibTNn8I9kGYzqnoe33153bBgz3KPJKcQP+WwCaDQN1 BBpHp3/OSKscMgZnk23/FRNBaBxKjJq3Lc+u+jQzPqBQUPwxHWqdNbJGx3UAjZnoa/VY u3Vw1kznNIg/XQE9zRTBg/JPPIBDRouLl31pNK89u0xbqQ/NAm+uProTejwN2/c0544Y ABTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=hhPnnD8x; 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 i13-v6si2473984pgq.426.2018.08.22.14.35.49; Wed, 22 Aug 2018 14:36:06 -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=hhPnnD8x; 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 S1727372AbeHWBBN (ORCPT + 99 others); Wed, 22 Aug 2018 21:01:13 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:40715 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727031AbeHWBBN (ORCPT ); Wed, 22 Aug 2018 21:01:13 -0400 Received: by mail-it0-f66.google.com with SMTP id h23-v6so4916573ita.5 for ; Wed, 22 Aug 2018 14:34:39 -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=oZSIBmCqcgJFrr9/RKL0TCJ+ZayHpNkL6FQD0XF9SR4=; b=hhPnnD8x3CTcPyonM9ZPBGFjkr9/B17JxObBnnwfBfc87nhoj1TJvkGoYpNqoiTt71 zakh7WV3vCS8KBhnNEh8+KaomtdyIrm9XPW68ycBYn2vLpPvcjYoL7HrsCNue3rYWpc0 OcTSnvQwzdISQhLGWscdM6KWpl0JEpPOiqbrk= 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=oZSIBmCqcgJFrr9/RKL0TCJ+ZayHpNkL6FQD0XF9SR4=; b=ikYxbIIBxtJYVYMO5m3PoGZLOLf/ldKR0UZFMxZXwtD3R3cpRBEk+fZhglh3xaUIet 2eBKt0r3QoIeZcDJfJEOqD/de4YIPMJwld/5QebCmqZ3dqTB3linWBOd0v3tBFr05vr3 JcMqvPPvW3vSGOjvob2x3ihUWAkV8djN7s6nFD6j3SuvdaWHh3SkX1BlvYRcD1xyNDVQ 3pWW1xDtnN+CnEdz2xnMZCD2dRnJVt3dSVeaHVQTFihCE0OW69FQKfLDXJDBUsGqX/Ui Pm/0GH1p0zW8nwTlrKQguET13AHXNOfYXo/VO9T5yVVUB1aw5Dgl/nVYbF8jViC8UQEb zp+Q== X-Gm-Message-State: APzg51Ae1vzCvi7/6eNGLaIpfQPNIezJMvAP3j0Uz86gmaTt5cooT7GT TwZHJ0gCvmEWF+m/N3Yf4AzRFpTf04pe2SSuL/I= X-Received: by 2002:a24:61d2:: with SMTP id s201-v6mr5137658itc.22.1534973678771; Wed, 22 Aug 2018 14:34:38 -0700 (PDT) MIME-Version: 1.0 References: <20180822153012.173508681@infradead.org> <20180822154046.823850812@infradead.org> In-Reply-To: <20180822154046.823850812@infradead.org> From: Linus Torvalds Date: Wed, 22 Aug 2018 14:34:27 -0700 Message-ID: Subject: Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE To: Peter Zijlstra Cc: Andrew Lutomirski , "the arch/x86 maintainers" , Borislav Petkov , Will Deacon , Rik van Riel , Jann Horn , Adin Scannell , Dave Hansen , Linux Kernel Mailing List , linux-mm , Nick Piggin , David Miller , Martin Schwidefsky , Michael Ellerman 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 Wed, Aug 22, 2018 at 8:46 AM Peter Zijlstra wrote: > > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -180,6 +180,7 @@ config X86 > select HAVE_PERF_REGS > select HAVE_PERF_USER_STACK_DUMP > select HAVE_RCU_TABLE_FREE > + select HAVE_RCU_TABLE_INVALIDATE if HAVE_RCU_TABLE_FREE This is confusing. First you select HAVE_RCU_TABLE_FREE unconditionally, and then you select HAVE_RCU_TABLE_INVALIDATE based on that unconditional variable. I can see why you do it, but that's because I see the next patch. On its own it just looks like you have a drinking problem. That said, I was waiting to see if this patch-set would get any comments before applying it, but it's been mostly crickets... So I think I'll just apply it and get this issue over and done with. Linus