Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1963344imm; Fri, 7 Sep 2018 08:45:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZSF+fhmF6FQ+nIxPQpac4AiZZFij7GaFyMVezI8B9ooJHDSjJawNMw2KbrZvNAsLQmWioB X-Received: by 2002:a17:902:8215:: with SMTP id x21-v6mr8414976pln.175.1536335145169; Fri, 07 Sep 2018 08:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536335145; cv=none; d=google.com; s=arc-20160816; b=Rozv/SIwUxjQ4sqyIClHuLqEdAATgFSFxIy7cQ13JdMsDUIWDvuYw+F4at/bdZOKNr a9MTMOL1JY+/BLVhdZfl8D3+nLhN12dzE2ftGi9MuRijkVI9hu18AO3EzkoflfKhcSiR JmFG9Mb8Hgv95+2TutdZUgDFk7KvnmUiPi9qWfIaY58yhrNq1pkqrtoPxlJMX/3+Ax2g /eZB7YclMev+eIOB3yEHgIw90ZuOSufMSDAmN7qM/fBLjdmVaSdOozRNEOH/behqBx/F +8pp5MmwqpYipjdCsRV3lijxCcG7Gjwdc1USjjQg6REuGU7b3EF404vFl82snWsnnMW8 8AZw== 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; bh=osukY03+adgMR847IOCbPxp21Qvvh6bLUDzNsHZFgNU=; b=lM2e1ruJnx2McrDp0gWPR1DrBaYmC5ygUjjqArOwj9jnYTAuRMDttQ5pTdx4D8GRjD ODNBhJrKl3qsGJpnpjSVKuawkgW4edFp6DfZfUJYl3pXRkDz+LIW9QdNa2c84oQQF0+x dXNGVnWkYlTcFx9UGJo0QBxCk5H5P6p9wa2swl/+TA/vCd/Nimi9GTR1JP0nnvN4pFAU CjxBrVC0a2D7VIleWFPBAM2FPoVZB6XAnxXChXLF7/RL5EwDJ0BPyBkDcXuVr8slKEfn kt/8wvG9u317po+oiMmn66BRdIhkrbphJ+ZZfT9x7iysKQlQ12yEA/ItS4d3Te16ZIR0 sNSA== ARC-Authentication-Results: i=1; mx.google.com; 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 t4-v6si8254555plo.235.2018.09.07.08.45.30; Fri, 07 Sep 2018 08:45:45 -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; 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 S1729646AbeIGSYr (ORCPT + 99 others); Fri, 7 Sep 2018 14:24:47 -0400 Received: from foss.arm.com ([217.140.101.70]:60610 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728481AbeIGSYr (ORCPT ); Fri, 7 Sep 2018 14:24:47 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8138F7A9; Fri, 7 Sep 2018 06:43:45 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 517D83F575; Fri, 7 Sep 2018 06:43:45 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 754C11AE37BD; Fri, 7 Sep 2018 14:44:00 +0100 (BST) Date: Fri, 7 Sep 2018 14:44:00 +0100 From: Will Deacon To: Rik van Riel Cc: Nicholas Piggin , Peter Zijlstra , torvalds@linux-foundation.org, luto@kernel.org, x86@kernel.org, bp@alien8.de, jannh@google.com, ascannell@google.com, dave.hansen@intel.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, David Miller , Martin Schwidefsky , Michael Ellerman , linux-arch@vger.kernel.org Subject: Re: [RFC PATCH 1/2] mm: move tlb_table_flush to tlb_flush_mmu_free Message-ID: <20180907134359.GA12187@arm.com> References: <20180823084709.19717-1-npiggin@gmail.com> <20180823084709.19717-2-npiggin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 06, 2018 at 04:29:59PM -0400, Rik van Riel wrote: > On Thu, 2018-08-23 at 18:47 +1000, Nicholas Piggin wrote: > > There is no need to call this from tlb_flush_mmu_tlbonly, it > > logically belongs with tlb_flush_mmu_free. This allows some > > code consolidation with a subsequent fix. > > > > Signed-off-by: Nicholas Piggin > > Reviewed-by: Rik van Riel > > This patch also fixes an infinite recursion bug > with CONFIG_HAVE_RCU_TABLE_FREE enabled, which > has this call trace: > > tlb_table_flush > -> tlb_table_invalidate > -> tlb_flush_mmu_tlbonly > -> tlb_table_flush > -> ... (infinite recursion) > > This should probably be applied sooner rather than > later. It's already in mainline with a cc stable afaict. Will