From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Lameter Subject: Re: [PATCH RFC v2 4/4] mm/mempolicy: add nodes_empty check in SYSC_migrate_pages Date: Thu, 9 Nov 2017 09:46:42 -0600 (CST) Message-ID: References: <1509099265-30868-1-git-send-email-xieyisheng1@huawei.com> <1509099265-30868-5-git-send-email-xieyisheng1@huawei.com> <04e4cb50-8cba-58af-1a5e-61e818cffa70@suse.cz> <4b08f1e9-5449-6ea2-e7da-65fe5f678683@huawei.com> <9991dd10-8883-7c82-bb4e-8145ea2b7299@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <9991dd10-8883-7c82-bb4e-8145ea2b7299-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Yisheng Xie Cc: Vlastimil Babka , akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org, mhocko-IBi9RG/b67k@public.gmane.org, mingo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, rientjes-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, n-horiguchi-PaJj6Psr51x8UrSeD/g0lQ@public.gmane.org, salls-b3bnyZ7c9ISVc3sceRu5cw@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, tanxiaojun-hv44wF8Li93QT0dZR+AlfA@public.gmane.org, linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Andi Kleen List-Id: linux-api@vger.kernel.org On Thu, 9 Nov 2017, Yisheng Xie wrote: > > The caller of migrate_pages should be able to migrate the target process > > pages anywhere the caller can allocate memory. If that is outside the > > target processes cpuset then that is fine. Pagecache pages that are not > > allocated by the target process already are not subject to the target > > processes restriction. So this is not that unusual. > > So there is no need to check the restriction of target process cpuset, right? > I hope that I do not miss anything :) Exactly.