Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2558835rwb; Sun, 6 Aug 2023 22:25:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyZzjwAIrzdcVVlguDfrjGXRDmtPL57LnfdkAqUpgc1XQkEKuXTh6UsFnyOTSu9dsT0WgV X-Received: by 2002:a05:6a21:999d:b0:140:c838:2b2e with SMTP id ve29-20020a056a21999d00b00140c8382b2emr3591304pzb.22.1691385957523; Sun, 06 Aug 2023 22:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691385957; cv=none; d=google.com; s=arc-20160816; b=ye623HuVL7kxoUdh+dCmws0EQSQOFy30oukI/GP+WycRBsERPfJRyIeZye5DL64NOM EPso/qWXhqAon2mlkBLcXDTa7sK2CrZ3VyThhuX0oI9QwzCjfxZQuE/xILRfwVfvOJZK AloO3EWmSevw7YE7jZe0miYQu7kgMOVxZlxechKHiFryYqOZxK9Q/zrFswlLO4JjEpiv /IUB3lh6ZsPtI4ESKvJmMrOSbIFzZoPJ4HFLO31BP8BC5zG8oRfCTDLOPgzDQtizXc+a NuPEcvySwmxb64jjzOqxbHlHed7gZu2IXG2gA3DSxvURnZyQvN0dX3Unt5LpzVV9vqyp 0XOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=wBeyCtY1bXLiisRJCG9PLR0qcRdf25xzqxIDsAZ9EZw=; fh=la7Z5+5lvJAwRmhlg8+9zdWDof3FsFIelInbXZFCiVs=; b=KdRU8jp9PwYpiuZH4sYxJLM6NKpigWduKhfupsga2M5LW0FAm9RQo+USEjSMZ/ymS6 5MJ1n8mKSTbn3GCDpfNOFf3VQS7invXrAfAGluGIT0q2hPt5gDOn9SV3TO+3JF0wzlv7 E8uBfXogDkTuDOc+cIrmVyIZWQ9KaWQPMfucUHab1gFQS/RsM9c1FASDbFIGSEvhxbfe RnVF1KQKFXKh/sGi8MMvJpX30x71AMp40XwL0uwlcQl19qI6KcHZ2OQVqHnxVjUIlw52 BcIryI2//WhU97MuAG0BxArP/HTKPygw62DMgYzN/wV+VEEY1gtVDboywj/7cWrUs4xU oXIw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s63-20020a632c42000000b0055c786fbccesi5096582pgs.157.2023.08.06.22.25.44; Sun, 06 Aug 2023 22:25:57 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230151AbjHGFIW (ORCPT + 99 others); Mon, 7 Aug 2023 01:08:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjHGFIR (ORCPT ); Mon, 7 Aug 2023 01:08:17 -0400 Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 88C1610FD for ; Sun, 6 Aug 2023 22:08:14 -0700 (PDT) X-AuditID: a67dfc5b-d6dff70000001748-47-64d07c3b9fd9 Date: Mon, 7 Aug 2023 14:05:31 +0900 From: Byungchul Park To: Nadav Amit Cc: Linux Kernel Mailing List , linux-mm , "kernel_team@skhynix.com" , Andrew Morton , "ying.huang@intel.com" , "xhao@linux.alibaba.com" , "mgorman@techsingularity.net" , Hugh Dickins , Matthew Wilcox , David Hildenbrand , Peter Zijlstra , Andy Lutomirski , Dave Hansen Subject: Re: [RFC 2/2] mm: Defer TLB flush by keeping both src and dst folios at migration Message-ID: <20230807050531.GB49200@system.software.com> References: <20230804061850.21498-1-byungchul@sk.com> <20230804061850.21498-3-byungchul@sk.com> <7023C1AF-6C9B-4544-8EC4-0BB790C1E338@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7023C1AF-6C9B-4544-8EC4-0BB790C1E338@vmware.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJIsWRmVeSWpSXmKPExsXC9ZZnoa5NzYUUg70zWSzmrF/DZvFiQzuj xdf1v5gtnn7qY7G4vGsOm8W9Nf9ZLc7vWstqsWPpPiaL67seMloc7z3AZPH7B1B2zhQri5Oz JrM48Hos2FTqsXmFlsfiPS+ZPDat6mTz2PRpErvHiRm/WTx2PrT0mHcy0OP9vqtsHlt/2Xl8 3iTn8W7+W7YAnigum5TUnMyy1CJ9uwSujOcbTrAWLGep+La+kamBcTtzFyMHh4SAicS9Q/Zd jJxgZkvfOkYQm0VAReL08a8sIDabgLrEjRs/mUFsEQFFiUP774HVMAtcYZH4Oo8PxBYWiJE4 seUzE4jNK2Ah8XbyeqB6Lg4hgamMEje6b0MlBCVOznzCAtGsLvFn3iWwG5gFpCWW/+OACMtL NG+dDbaLU8BOYu7Wy2CtogLKEge2HWcCmSkh0M8u0br+BjvE0ZISB1fcYJnAKDgLyYpZSFbM QlgxC8mKBYwsqxiFMvPKchMzc0z0MirzMiv0kvNzNzECI3BZ7Z/oHYyfLgQfYhTgYFTi4W04 fD5FiDWxrLgy9xCjBAezkgjvvCdAId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rxG38pThATSE0tS s1NTC1KLYLJMHJxSDYwLzmalnNw73+ta+XS3QBE57ZZHr3+Y1l9/G+zH/Ef6Q+S97EyB4K2T vxw4s0JDsTEr1DJxKrezpNmdQrUJ9Yf5Xuz/vc04uVcm4J7kqjslD7/8PPZh/v3cFw6aM/cd WPG9c/eriQE9XssqdYPma3puUi5zL9O98ZRFOzboj6Cg3xy1ayeyc1KVWIozEg21mIuKEwFN 4viIvAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIIsWRmVeSWpSXmKPExsXC5WfdrGtdcyHF4P92E4s569ewWbzY0M5o 8XX9L2aLp5/6WCwOzz3JanF51xw2i3tr/rNanN+1ltVix9J9TBbXdz1ktDjee4DJ4vcPoOyc KVYWJ2dNZnHg81iwqdRj8wotj8V7XjJ5bFrVyeax6dMkdo8TM36zeOx8aOkx72Sgx/t9V9k8 Fr/4wOSx9Zedx+dNch7v5r9lC+CN4rJJSc3JLEst0rdL4Mp4vuEEa8Fylopv6xuZGhi3M3cx cnJICJhItPStYwSxWQRUJE4f/8oCYrMJqEvcuPETrEZEQFHi0P57YDXMAldYJL7O4wOxhQVi JE5s+cwEYvMKWEi8nbweqJ6LQ0hgKqPEje7bUAlBiZMzn7BANKtL/Jl3CaiIA8iWllj+jwMi LC/RvHU22C5OATuJuVsvg7WKCihLHNh2nGkCI98sJJNmIZk0C2HSLCSTFjCyrGIUycwry03M zDHVK87OqMzLrNBLzs/dxAiMqGW1fybuYPxy2f0QowAHoxIPb8Ph8ylCrIllxZW5hxglOJiV RHjnPQEK8aYkVlalFuXHF5XmpBYfYpTmYFES5/UKT00QEkhPLEnNTk0tSC2CyTJxcEo1MB79 EW614ZDPpZP9z8uj5VglLs579PDZqz4JS5b326Xa5xe+tXGTTDdeOWPrsucXPVdxX1V4OjHk OMuuc1vfTFSe0hnmmpF1tzF/3v6n6lp3M9T4j3K07o+veqH/2tdyr1n4BCavOyl3A5ao+txd 51THf7TObIpodYJmyWzN62pJkqfXaj961anEUpyRaKjFXFScCAAKeW/NpAIAAA== X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Fri, Aug 04, 2023 at 05:32:30PM +0000, Nadav Amit wrote: > The patch in its current form, I am afraid, is very very hard to review. > It is way too big and is missing comments. Having CONFIG_MIGRC makes no > sense (I guess it is intended to be a “chicken-bit”). Variable and > function names are not informative. The memory barriers are handle > improperly (please check again the smp_mb__after_atomic() rules). I checked it. I found what I was wrong at. Thank you for pointing it out. I will fix it from the next spin. Byungchul