Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp586895rdg; Thu, 10 Aug 2023 12:20:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEgKA5AafZnenqq3RotTUaVZR40VvIvDIKLO9al3Z8AhbhHyaYtZ+yPgf5za+gPjJtaXDDj X-Received: by 2002:a05:6a21:7903:b0:13d:d5bd:7593 with SMTP id bg3-20020a056a21790300b0013dd5bd7593mr3010888pzc.12.1691695219542; Thu, 10 Aug 2023 12:20:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691695219; cv=none; d=google.com; s=arc-20160816; b=SUfrFWAi97wF26uJa6ez2aEpYZY66HCu9kc4ejyxV87ludl1Dlef2LVQ8jE5aPxhBr 2HYqbGiur4A+7AYQscCC/KK7l/GvKi2WWXUqQVfuvcM5xW2uUx062rkctyWE6nCkKbx9 UdFAbYUZZMHW6l2iTN0a6q1P/jjrhQnrMukiJ3FEFAML09d0nxYr1f3wCHnXgwHq5NrY aZ3Z3VlmrJNdveUeSYdreRS0hLyAT8nqRJJr9P874t+0t9rasKNDUNJmjVjIrTndrR/M AzTXQItgV52IQhtkZjg79VyYIVgZ4LvtjounBTYuibwjx2E5m2dEiZd5Th7xp8mwyYL0 gvBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=GU4tUvFWSTml11ClJwsgBgwqd67/DGFAe72FjDDC69o=; fh=3dyG9ZyyzBXyZp/gu7zzV+66YU6bRI9vvKIbkOywE7A=; b=E2A4Qs5M8IL2pF8KSTSCRyQ+cKcQiFSHGIpBbi9DcvKBSVXK7cJ8jrBJiWdAaLEVKB uhr7btHsMi1KZobASRFlg4IlLdvsIpU8BfI9B5WkK/OY7wDbIkNdJM0v0OMWgAaAzpsk Qme+q2RjEC71OXpqw9OAb5mcVSDrl6ZHxRZS51CyI6y02tCn6bmTMrho/heNvCkfZYLM 31DTjORKNg2Fjf7AtJgCWGpR+GKiY+4RjVZefRkfbscfuIaN+MR9OyS1x4jzTMh+qKDi PUqYW10rgEWF2+jMi1+XkWTbqsRSNGUQeLj6o5oQy1lU35Q8wRA8qJ1tXhJPltz3iryz 81cw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bx27-20020a056a02051b00b0056546b5fef4si2147208pgb.232.2023.08.10.12.20.06; Thu, 10 Aug 2023 12:20:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235397AbjHJSy1 (ORCPT + 99 others); Thu, 10 Aug 2023 14:54:27 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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