Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1994893imm; Thu, 23 Aug 2018 12:17:16 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwcu1m9wBWemNcAk5ZAUZLJvs1Sw/kqJ/bCioxv8kU20BCd11Vt8m/YL/LHgHm410COGbqj X-Received: by 2002:a63:1506:: with SMTP id v6-v6mr14722060pgl.150.1535051836717; Thu, 23 Aug 2018 12:17:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535051836; cv=none; d=google.com; s=arc-20160816; b=NhV1AH0ACVJW4Jf/kX5X1cwEeuoXgQN9vRhmenMHR1VpbzJVOIFiXAdg0pUp0tdcqx iLdtNGjzIIZ4x+CVjYGTL8ypmXd8hRvjXjvta0ZEalgK8sRTXSCv/NANocSyFxoRHH17 BFevZ7GBNqtJfXxKvzgMGVYVx5nExegds937QW8Q5zrEZuJe1ED48D2HyiHs0LPEe4Mk XUyasFKDK09QbdKB0138/Vkfqb6KcrTiI07lWAH0+fcDrhX4xKLB4jUTJVn2O94CzyRK d/llNqGkZzLbbSRaQOSM+q+4TWUgqG3Z4uhrhRhOOdDk36thY3Km+RD5xW3GK8Yq8lOJ YXUg== 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=/bEn5OIBqgOb53Gz/lHhoUwwxCPmH66LYI850gHrlPE=; b=bHFXYO2U6F/sAfBF6gxChh9uCYbrzGvUPPy5eTVvnXxRXk3Lb9yAWsGivPPOd3pSjp FocPBT0JmZ1TrfBa2MKzjyLzDGy7f+374crxmS5/fCgLYeFO8FoQTglhJ+5M7sRLoTlo K12ydx9efj0rqtJIJVVc9FXOWCOGOt8443BYxeRaNQlyQiiatqy9C6FqcloWZcGI73Z3 5RppyO1Jacx9yikZ6ZSafb1IhwSHVs8WWw1kLCh+OV85UGYjxRYKXPjLODSVqnzT4A5A jRVkSb/p33o/BJZ/aZrGaUvXvJvOcJVDoLXEdf3LanXlv3yJO367dLQ8H7sVe9qU6C6v 85vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=cV+wc8rC; 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 r24-v6si5109918pgo.605.2018.08.23.12.16.59; Thu, 23 Aug 2018 12:17:16 -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=cV+wc8rC; 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 S1726267AbeHWWqz (ORCPT + 99 others); Thu, 23 Aug 2018 18:46:55 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:34762 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726081AbeHWWqz (ORCPT ); Thu, 23 Aug 2018 18:46:55 -0400 Received: by mail-it0-f66.google.com with SMTP id x79-v6so3264728ita.1; Thu, 23 Aug 2018 12:15:49 -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=/bEn5OIBqgOb53Gz/lHhoUwwxCPmH66LYI850gHrlPE=; b=cV+wc8rCK1Rwdns624ZvTCLQ5pKwkMTXrz34XCtdd7Yla27QuKv3Efoir256tXsGpk +HuegusbtJYJr1V1ex9waZxVwsemhymlHCFxz6Dr78p47zGJWjzCDTC+MZHp9Wl9AoUz lTfu3shSQzSpVpeA3b0jJqc2VLH/2X5vMyWBk= 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=/bEn5OIBqgOb53Gz/lHhoUwwxCPmH66LYI850gHrlPE=; b=Ux3Ch7Mdl3xz8XS8QTbtuXQY4zw1i5TNJJd8WYl5tHtpPkg4Ww0+doT4Hp0clp5aHL ezDPPuGnWjxEAXFnAD0hpHGjib73Ju6c1ft8Ff8UyxuovP7W9QXY1dHMvLObRgzXp0b1 /TBPnISGwDdthdxREaI62L1DTOwiThWH6NpBYJsKCogIWZHyEDf+PtAoLIfNqYHMdZh8 0tQo+/6d254SW02y4lNAuONyGXQBajRKcy6X1A1tmwkMEQ/xOGMWGmFYnYEx7jYGs9vJ sjs2KilUTFIZj5DpzLouFL2XMezTVV5DdEhUezCsAyA8dkuuVqXSTvsWW75KjRCuNRzu s9TQ== X-Gm-Message-State: APzg51DqRES+NadkbKEVNVcsCmL5K3qBZZW3UpmvX+JbLr7i94a1R+jp WynlNRqdZxNkl4F6EznU68F/Mi/crREyPbS9OTY= X-Received: by 2002:a24:3046:: with SMTP id q67-v6mr8180734itq.9.1535051748840; Thu, 23 Aug 2018 12:15:48 -0700 (PDT) MIME-Version: 1.0 References: <20180823084709.19717-1-npiggin@gmail.com> In-Reply-To: <20180823084709.19717-1-npiggin@gmail.com> From: Linus Torvalds Date: Thu, 23 Aug 2018 12:15:37 -0700 Message-ID: Subject: Re: [RFC PATCH 0/2] minor mmu_gather patches To: Nick Piggin Cc: Peter Zijlstra , 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 , David Miller , Martin Schwidefsky , Michael Ellerman , linux-arch 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 Thu, Aug 23, 2018 at 1:47 AM Nicholas Piggin wrote: > > These are split from some patches I posted a while back, I was going > to take a look and revive the series again after your fixes go in, > but having another look, it may be that your "[PATCH 3/4] mm/tlb, > x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE" becomes > easier after my patch 1. > > And I'm not convinced patch 2 is not a real bug at least for ARM64, > so it may be possible to squeeze it in if it's reviewed very > carefully (I need to actually reproduce and trace it). > > So not signed off by yet, but if you think it might be worth doing > these with your changes, it could be a slightly cleaner end result? Actually, you did have sign-offs, and yes, that patch 1/2 does actually clean up and simplify the HAVE_RCU_TABLE_INVALIDATE fix, so I decided to mix these in with PeterZ's series. And since it turns out that patch doesn't apparently matter for correctness and doesn't need to be backported to stable, I put it at the end of the series together with the x86 cleanup patch to avoid the unnecessary RCU-delayed freeing entirely for the non-PV case. So right now my "tlb-fixes" branch looks like this: x86/mm/tlb: Revert the recent lazy TLB patches * mm: move tlb_table_flush to tlb_flush_mmu_free * mm/tlb: Remove tlb_remove_table() non-concurrent condition * mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE mm: mmu_notifier fix for tlb_end_vma x86/mm: Only use tlb_remove_table() for paravirt where the three starred patches are marked for stable. The initial revert is for this merge window only, and the two last patches are cleanups and fixes but shouldn't matter for correctness in stable. PeterZ - your "mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE" patch looks exactly the same, but it now no longer has the split of tlb_flush_mmu_tlbonly(), since with Nick's patch to move the call to tlb_table_flush(tlb) into tlb_flush_mmu_free, there's no need for the separate double-underscore version. I hope nothing I did screwed things up. It all looks sane to me. Famous last words. I'll do a few more test builds and boots, but I think I'm going to merge it in this cleaned-up and re-ordered form. Linus