Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1967776imm; Fri, 7 Sep 2018 08:50:09 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ7Tb244C+f9mzoB+L058WuMaB5UKjIi2JssP0/2SzsdTk2TqbV3YFAmH/52b1RvRjBq6Ps X-Received: by 2002:a17:902:b218:: with SMTP id t24-v6mr8621571plr.235.1536335409689; Fri, 07 Sep 2018 08:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536335409; cv=none; d=google.com; s=arc-20160816; b=FNNlV+q8wEABWfx0DjX6NxY2kId0jlO1MUzrmWM5hwg5grMR/XYZePJEPcsot+rzGl Io86Nrpe60gFJ1LT6QI4FhL3IFthyBym4dQaojuG8UMdTMfyVN1HoR27xSYx9yK6wFAw Oo0AiUQrjQl0+lTbrz8XlFz72ATkLOOQj+TKgeXjv+XLFqTrq/ZLEI2Sxr3u6quuuIDx jv9PJwiIGfztD2+6gED9nWlcOipv/zRHoPRvgB7WBgBK4VTNRRUEjjniYGD3N1OVZbw9 cJ3IyWUbYxI7ZtGuNHoGc23JP7ofLn8aFzSjWt8BUn059hl/L3tKBVZ7pgJN8faindQu IwLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to:date :cc:to:from:subject:message-id; bh=6pBinn5XNGX3sgAopHwj+wmJlbyh+98V34bF/+qoSiE=; b=e2CcHirkteYU+ERRnSflmFzDCNyjTG4b7DQwMPz3ULgg+Jo3c27l3mbnWZ7iT6au7q qS5vHeJnW6DG8+aI8kPIvniu2+cstcn6lo76SmCW/YnSx9Po+qN0sr+cGpBvXhpPMURC 5e+n/O/ZagXxk6JROgPv0h5q3ngVRZ6ba+FLvYI355m99bDLES19GX1qaDezys221Kjp gxV4DN339iThK6Tw9gQzP1j5O9Xf3MA1rzXfF2K2/quhSu5ow5S4yJsF8pWAGf0zjrZx It0b2VUoCwkDj/KnJdTKOsaWeJcXbHTCoJpF+uKH3xi5OW/KU4b5c1XuNtW9dv+NHnsY D6Sg== 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 n15-v6si9462996pgc.309.2018.09.07.08.49.54; Fri, 07 Sep 2018 08:50:09 -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 S1728632AbeIGTJd (ORCPT + 99 others); Fri, 7 Sep 2018 15:09:33 -0400 Received: from shelob.surriel.com ([96.67.55.147]:45468 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726295AbeIGTJd (ORCPT ); Fri, 7 Sep 2018 15:09:33 -0400 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fyHjy-0007PH-AR; Fri, 07 Sep 2018 10:28:06 -0400 Message-ID: Subject: Re: [RFC PATCH 1/2] mm: move tlb_table_flush to tlb_flush_mmu_free From: Rik van Riel To: Will Deacon 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 Date: Fri, 07 Sep 2018 10:28:05 -0400 In-Reply-To: <20180907134359.GA12187@arm.com> References: <20180823084709.19717-1-npiggin@gmail.com> <20180823084709.19717-2-npiggin@gmail.com> <20180907134359.GA12187@arm.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-IFHu9I6W7+At+9sCwKHu" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-IFHu9I6W7+At+9sCwKHu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2018-09-07 at 14:44 +0100, Will Deacon wrote: > 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. > > >=20 > > > Signed-off-by: Nicholas Piggin > >=20 > > Reviewed-by: Rik van Riel > >=20 > > This patch also fixes an infinite recursion bug > > with CONFIG_HAVE_RCU_TABLE_FREE enabled, which > > has this call trace: > >=20 > > tlb_table_flush > > -> tlb_table_invalidate > > -> tlb_flush_mmu_tlbonly > > -> tlb_table_flush > > -> ... (infinite recursion) > >=20 > > This should probably be applied sooner rather than > > later. >=20 > It's already in mainline with a cc stable afaict. Sure enough, it is. I guess I have too many kernel trees on this system, and was looking at the wrong one somehow. --=20 All Rights Reversed. --=-IFHu9I6W7+At+9sCwKHu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAluSivUACgkQznnekoTE 3oPhFwf/Qd/rrFLYEKAcJENv34o7Gk0YNVmPKKhyg9sj8nteRac1mnyeVpqmXfWW 4yDdUx6glji8FWttmnTcpbb/frJlwsKFYBsoYDxBc/D73sTf+3Q8aAbhYAYGzcDq GNANhQ1BQXNHL5YfEZtpCFha66ZpAAPEMr+1PI6/k4oMWIOW+EqXko92WP+Vwr9I jfYaqKq9UfwFmy/ftaynlXP8yQjlSc2mYTA1SOEuAyiquvBH3TZo2f7bALCA1wP/ i0lLnEPvFwlgxXDg5l2d/aQxbW4j2KnFLZ3AJMZpPhTfcWanSVSpkxOfZlmXQnPp DgV4H7ZrKkvWgRg8+/l1CpXX4ulpRA== =4rvN -----END PGP SIGNATURE----- --=-IFHu9I6W7+At+9sCwKHu--