From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3260C04A6A for ; Thu, 10 Aug 2023 18:54:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235570AbjHJSy2 (ORCPT ); Thu, 10 Aug 2023 14:54:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235004AbjHJSy0 (ORCPT ); Thu, 10 Aug 2023 14:54:26 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 05EE926B8 for ; Thu, 10 Aug 2023 11:54:23 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 219BED75; Thu, 10 Aug 2023 11:55:06 -0700 (PDT) Received: from [192.168.0.23] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 23A153F6C4; Thu, 10 Aug 2023 11:54:21 -0700 (PDT) Message-ID: <4f4d0cc0-6e56-4608-bed0-4bad3adc3c7b@arm.com> Date: Thu, 10 Aug 2023 19:54:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 3/4] mm/mmu_gather: Remove encoded_page infrastructure Content-Language: en-GB To: Linus Torvalds , Yu Zhao Cc: Hugh Dickins , Johannes Weiner , Will Deacon , "Aneesh Kumar K.V" , Andrew Morton , Nick Piggin , Peter Zijlstra , Christian Borntraeger , Sven Schnelle , Arnd Bergmann , "Matthew Wilcox (Oracle)" , David Hildenbrand , "Kirill A. Shutemov" , Yin Fengwei , Yang Shi , "Huang, Ying" , Zi Yan , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20230810103332.3062143-1-ryan.roberts@arm.com> <20230810103332.3062143-4-ryan.roberts@arm.com> From: Ryan Roberts In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/08/2023 19:31, Linus Torvalds wrote: > On Thu, 10 Aug 2023 at 10:35, Yu Zhao wrote: >> >> Adding the original author and reviewers... They might want (need) to >> take a look at this series. > > It looks fine to me. The important part is that the rmap removal has > to be done after the TLB flush, but before the page table lock is > released. Yes, we still abide by this rule for the !PageAnon(page) pages. > > That used to be a special thing for anonymous pages and thus needed > that special flag. But if it's done for *all* pages the need to flag > pages goes away. I think you misstyped - assuming you meant pagecache pages rather than anonymous pages? > > I see no issues with this, although obviously I might have missed something. Thanks for looking so quickly - really appreciate it. And sorry not to have included you initially. Thanks, Ryan > > Linus