Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1044708imm; Thu, 6 Sep 2018 14:27:13 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda4zz2ycDs0Fl7nvhoJzqFiXCbdDBFD3q9ALt2AO5Urv+ic2wnVaXZAqEZmuyMJ5BQUIXDn X-Received: by 2002:aa7:818f:: with SMTP id g15-v6mr5033936pfi.71.1536269233668; Thu, 06 Sep 2018 14:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536269233; cv=none; d=google.com; s=arc-20160816; b=F8NkZ3r/yDeGLiGLJkO7FjO3z3W7BuLxLLjdlhNVeeujh/yE6m0wTundMv+okUuc8E QYtTiaiz1ynLkCTNZhLM9PeybSRVcKP0DDQCiV3qpGPmQN4a0EReEvNQ18C28zJaYhu9 3X6S+g3s+iGNPkkKQYej691mQlCRwwHxWDlRXgMF5WGTBunZW0COjPs5TiI6eJh/RNmr uu0BfaTGVp/c/EF8+e0QV8gQd2FtpTJ0MwNXyY+AJi0sRm9lSYY1cJB1TtSaLEKHsi04 nUntCe24BmZC0hyF4EdA0jiaPgCSuyNUIzzMb1qAEHuDX506+OyNdF5+cuuYFXSt39pE /Q8g== 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=Tub3yGwPU/4rozocbjxi/pMAkRPQEQ5+JsJB1/bHS6Y=; b=IzwNDsO5qAp4TSCgF0auAgFsx8W0K8LSNu2XAaPN/PLFmkVy6DVxeY5ydkO6mwxNFz Uo85t9XbJSePbmmISErDUhDebMrMPpr33D96nSPZRbM9yHljmVBCKdvSSf3kQdbUEk+L 27T9i5ZgL4VdqTMODvwllAOv9eHwvpQ5N3BvKv4r6LFxfSELxigjyL7TOJAgq+Xfv1h7 l8AgU6ievcFNc3+xOFsB0kw0Zbq8Hz2NkhT7iIoULFamQfkJWFdzSZ/swcdZyBI1YoRB J03w4Yjm2vLIcPOOteeQeq3/QDBM49c6uyINtEpFgb8Oa8bfpSMr5NAZpkrJZUpj+8r3 soLw== 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 i12-v6si6491915pgr.267.2018.09.06.14.26.58; Thu, 06 Sep 2018 14:27:13 -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 S1729849AbeIGBHS (ORCPT + 99 others); Thu, 6 Sep 2018 21:07:18 -0400 Received: from shelob.surriel.com ([96.67.55.147]:43984 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729826AbeIGBHS (ORCPT ); Thu, 6 Sep 2018 21:07:18 -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 1fy0ue-000096-1v; Thu, 06 Sep 2018 16:30:00 -0400 Message-ID: Subject: Re: [RFC PATCH 1/2] mm: move tlb_table_flush to tlb_flush_mmu_free From: Rik van Riel To: Nicholas Piggin , Peter Zijlstra Cc: torvalds@linux-foundation.org, luto@kernel.org, x86@kernel.org, bp@alien8.de, will.deacon@arm.com, 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: Thu, 06 Sep 2018 16:29:59 -0400 In-Reply-To: <20180823084709.19717-2-npiggin@gmail.com> References: <20180823084709.19717-1-npiggin@gmail.com> <20180823084709.19717-2-npiggin@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-QttmgVvdlWOXMEILqZsq" 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 --=-QttmgVvdlWOXMEILqZsq Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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. --=20 All Rights Reversed. --=-QttmgVvdlWOXMEILqZsq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAluRjkcACgkQznnekoTE 3oOfdAgAgn63e88Lj0I9lDDOx5WKhEfgPfWM7o5JhGZg8FxNA8lfLlgA3tFPYd4+ mYWwbBpKSf+yLLRvy4V7V4pv7b0gk7jYTvxir3iOfFcFZ0OQVKYrbr2+txZJb6Xj tosM9v5SsYMwJHGw+1cD0DQsvR/6uio0TthxchcpV4bNVvW1X8HlzFarPY32kpf8 HRU7NF/7gS2sxPQLPC/i+m4YgnuIq5xfseMOVVFp7H+uNI5BLCyrDm74zbFbtj1A HtFG9Yp4pj0KX/Bq7oiLOQ9suEtcJUI46sERyergDvFFRhTwoBGRxJ/wbKRQkxIF elqWT6jifgV0u6aRFHPPkEIuIUdTbg== =/CHW -----END PGP SIGNATURE----- --=-QttmgVvdlWOXMEILqZsq--