From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754852AbdKQBt4 (ORCPT ); Thu, 16 Nov 2017 20:49:56 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:10993 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754755AbdKQBtr (ORCPT ); Thu, 16 Nov 2017 20:49:47 -0500 From: Yisheng Xie To: , , , , , , , , CC: , , , Subject: [PATCH v3 0/3] some fixes and clean up for mempolicy Date: Fri, 17 Nov 2017 09:37:01 +0800 Message-ID: <1510882624-44342-1-git-send-email-xieyisheng1@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A0B0207.5A0E3F70.0076,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 4f1abdb5dd780017ba0985038b1fe9bb Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset is triggered by Xiojun's report of ltp test fail[1], and I have sent a patch to resolve it by check nodes_empty of new_nodes[2]. The new version is to follow Vlastimil's suggestion, which fix by checking the new_nodes value in function get_nodes. And I just split them to small patches for easy to review and discussion. For more detail, please look into each patches. Change logs of v3: * remove patch get_nodes's mask miscalculation * check whether node is empty after AND current task node, and then nodes which have memory. Change logs of v2: * fix get_nodes's mask miscalculation * remove redundant check in get_nodes * fix the check of nodemask from user - per Vlastimil Any comment and complain is welome. Thanks Yisheng Xie [1] https://patchwork.kernel.org/patch/10012005/ [2] https://patchwork.kernel.org/patch/10013329/ Yisheng Xie (3): mm/mempolicy: remove redundant check in get_nodes mm/mempolicy: fix the check of nodemask from user mm/mempolicy: add nodes_empty check in SYSC_migrate_pages mm/mempolicy.c | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) -- 1.8.3.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yisheng Xie Subject: [PATCH v3 0/3] some fixes and clean up for mempolicy Date: Fri, 17 Nov 2017 09:37:01 +0800 Message-ID: <1510882624-44342-1-git-send-email-xieyisheng1@huawei.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org, vbabka-AlSwsSmVLrQ@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, ak-VuQAYsv1563Yd54FQh9/CA@public.gmane.org, cl-vYTEC60ixJUAvxtiuMwx3w@public.gmane.org Cc: linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, tanxiaojun-hv44wF8Li93QT0dZR+AlfA@public.gmane.org List-Id: linux-api@vger.kernel.org This patchset is triggered by Xiojun's report of ltp test fail[1], and I have sent a patch to resolve it by check nodes_empty of new_nodes[2]. The new version is to follow Vlastimil's suggestion, which fix by checking the new_nodes value in function get_nodes. And I just split them to small patches for easy to review and discussion. For more detail, please look into each patches. Change logs of v3: * remove patch get_nodes's mask miscalculation * check whether node is empty after AND current task node, and then nodes which have memory. Change logs of v2: * fix get_nodes's mask miscalculation * remove redundant check in get_nodes * fix the check of nodemask from user - per Vlastimil Any comment and complain is welome. Thanks Yisheng Xie [1] https://patchwork.kernel.org/patch/10012005/ [2] https://patchwork.kernel.org/patch/10013329/ Yisheng Xie (3): mm/mempolicy: remove redundant check in get_nodes mm/mempolicy: fix the check of nodemask from user mm/mempolicy: add nodes_empty check in SYSC_migrate_pages mm/mempolicy.c | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) -- 1.8.3.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f197.google.com (mail-io0-f197.google.com [209.85.223.197]) by kanga.kvack.org (Postfix) with ESMTP id 409286B025E for ; Thu, 16 Nov 2017 20:49:40 -0500 (EST) Received: by mail-io0-f197.google.com with SMTP id r70so6222206ioi.2 for ; Thu, 16 Nov 2017 17:49:40 -0800 (PST) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com. [45.249.212.191]) by mx.google.com with ESMTPS id m133si1624347ioe.229.2017.11.16.17.49.36 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 16 Nov 2017 17:49:38 -0800 (PST) From: Yisheng Xie Subject: [PATCH v3 0/3] some fixes and clean up for mempolicy Date: Fri, 17 Nov 2017 09:37:01 +0800 Message-ID: <1510882624-44342-1-git-send-email-xieyisheng1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain Sender: owner-linux-mm@kvack.org List-ID: To: akpm@linux-foundation.org, vbabka@suse.cz, mhocko@suse.com, mingo@kernel.org, rientjes@google.com, n-horiguchi@ah.jp.nec.com, salls@cs.ucsb.edu, ak@linux.intel.com, cl@linux.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, tanxiaojun@huawei.com This patchset is triggered by Xiojun's report of ltp test fail[1], and I have sent a patch to resolve it by check nodes_empty of new_nodes[2]. The new version is to follow Vlastimil's suggestion, which fix by checking the new_nodes value in function get_nodes. And I just split them to small patches for easy to review and discussion. For more detail, please look into each patches. Change logs of v3: * remove patch get_nodes's mask miscalculation * check whether node is empty after AND current task node, and then nodes which have memory. Change logs of v2: * fix get_nodes's mask miscalculation * remove redundant check in get_nodes * fix the check of nodemask from user - per Vlastimil Any comment and complain is welome. Thanks Yisheng Xie [1] https://patchwork.kernel.org/patch/10012005/ [2] https://patchwork.kernel.org/patch/10013329/ Yisheng Xie (3): mm/mempolicy: remove redundant check in get_nodes mm/mempolicy: fix the check of nodemask from user mm/mempolicy: add nodes_empty check in SYSC_migrate_pages mm/mempolicy.c | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) -- 1.8.3.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org