Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp389711rdb; Sun, 14 Jan 2024 23:55:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeP8sD1+DlSmCL/zh1MmOj0susgg9V2c/9BB4kl8e3nGpDg2vo3o6pWEaVUUKASIpVBdqM X-Received: by 2002:a05:6402:350e:b0:558:6cc:d5d6 with SMTP id b14-20020a056402350e00b0055806ccd5d6mr2965995edd.11.1705305357274; Sun, 14 Jan 2024 23:55:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705305357; cv=none; d=google.com; s=arc-20160816; b=h+hIEyNE8amJAGSSL62U0wsoGlPhtzK53j3nRKdMAuQy/IJoF0eemRXzZMjpvFs7vq peAah7OkaTHBO+4EZi+yK6vaiFed7oKXLjIBPdXnjrw5Mp5Y4Ze3DpBSPjd7woQnoZ7z QRMUTVKJGX5aISpEdG9tFHK8DHfXDPGrMVpCwKsm6U9TeiMRYFwAs3v+mz+q0IEPlrga KY7ji0GIy7FjmyYCu4VgDC7n4EGjvdojEhlBYcNMF80+7xxPX0mc7x/HXAIlJSW5TBYq j+OJMx8O3Iv7nWtN0q97UyIp+Yuaqoe5P4ADIuQW7HtA6+NbNjIyKfek+DHhfFXHf5Am WhQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=2cWwPFUM0+963lKs0X4l1zqOO05CIu3HV35lzqvqalc=; fh=GLUtNoGkf2YWdw6rYn5sLcedR6TRfK9mXlUAaKh+EHQ=; b=uEphNRDVwEvOR626u/mkqdGbomJYVyH/WfAx1VALh3zaoJacUQvl9iFDrxMJtzQEaw IJeqAQ+y705hV2xGvRXEIvUOm9W/XhBh65jpzcmDyEI0JVSmicIGwhj5sO9KJVA/u9Ve ObXcQfRZKmmUUwV320WaslcHX5ol2pmCifkUWNg0zl0bDciPR4CILuAkpxpClVRNSWIp UU+xKwKCVoZ9zBAxaEKdFMnE9IUwEIPY+DV2AA6z3KFggeVB5x7fXzwwxu12vdHhyPuf e2ZZClHtordaoquIgyy9JT4cpMi0DcOn+FssP71BMxlLhBEkZoS97CPzH4jwkcOKMfM9 8h/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-25699-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25699-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u9-20020a50eac9000000b00558bcd439b1si2908960edp.63.2024.01.14.23.55.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jan 2024 23:55:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25699-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-25699-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25699-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0AFF11F217D0 for ; Mon, 15 Jan 2024 07:55:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C3AB5233; Mon, 15 Jan 2024 07:55:50 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB9773D8F for ; Mon, 15 Jan 2024 07:55:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sk.com X-AuditID: a67dfc5b-d85ff70000001748-db-65a4e4fd330c Date: Mon, 15 Jan 2024 16:55:35 +0900 From: Byungchul Park To: Matthew Wilcox Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel_team@skhynix.com, akpm@linux-foundation.org, ying.huang@intel.com, namit@vmware.com, xhao@linux.alibaba.com, mgorman@techsingularity.net, hughd@google.com, david@redhat.com, peterz@infradead.org, luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com Subject: Re: [v4 2/3] mm: Defer TLB flush by keeping both src and dst folios at migration Message-ID: <20240115075535.GA56305@system.software.com> References: <20231109045908.54996-1-byungchul@sk.com> <20231109045908.54996-3-byungchul@sk.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOIsWRmVeSWpSXmKPExsXC9ZZnke7fJ0tSDaauMLWYs34Nm8XnDf/Y LF5saGe0+Lr+F7PF0099LBaXd81hs7i35j+rxflda1ktdizdx2Rx6cACJovrux4yWhzvPcBk sXnTVGaL3z+A6uZMsbI4OWsyi4OAx/fWPhaPBZtKPTav0PJYvOclk8emVZ1sHps+TWL3eHfu HLvHiRm/WTx2PrT0mHcy0OP9vqtsHlt/2Xl83iTn8W7+W7YAvigum5TUnMyy1CJ9uwSujJeX z7IXPGKuaJtm18D4nqmLkYNDQsBEYtkcvy5GTjDzbOc6VhCbRUBVYvONE8wgNpuAusSNGz+Z QcpFBDQk3mwx6mLk4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dU5mVW6CXn525iBEbTsto/E3cwfrnsfohRgINR iYf3x9/FqUKsiWXFlbmHGCU4mJVEeKvvLEkV4k1JrKxKLcqPLyrNSS0+xCjNwaIkzusVnpog JJCeWJKanZpakFoEk2Xi4JRqYLxi9Xz7/y2sHRsmb31WMOXTimct2Z+PLHG6nsAnXDzR1uRn 6PSDd68ommtmMzllLF93uSKj1Ov5dxUOFuOL8tfL+5kXL1uw6dfNDoVYa3OWoxeV1zZWJ1wP nnx7gsHZCULfjvpVOZpEc77LuiV6ZWrwPd0f90yzvnj7GXTNrxJub30tab1jWZISS3FGoqEW c1FxIgCK249YogIAAA== X-CFilter-Loop: Reflected On Thu, Nov 09, 2023 at 02:36:01PM +0000, Matthew Wilcox wrote: > On Thu, Nov 09, 2023 at 01:59:07PM +0900, Byungchul Park wrote: > > +++ b/include/linux/page-flags.h > > @@ -136,6 +136,7 @@ enum pageflags { > > PG_arch_2, > > PG_arch_3, > > #endif > > + PG_migrc, /* Page is under migrc's control */ > > __NR_PAGEFLAGS, > > Yeah; no. We're out of page flags. And CXL is insufficiently I won't use an additional page flag any more. Thanks. Byungchul