Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp138012img; Wed, 20 Mar 2019 16:07:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxehQsTgQHTnkXTC7xmyTU0WT46BJQzpPA46mCqvkiq+BDvE+Gs0fnE7gdcPaUwAoW+12oj X-Received: by 2002:a17:902:b217:: with SMTP id t23mr336404plr.184.1553123274965; Wed, 20 Mar 2019 16:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553123274; cv=none; d=google.com; s=arc-20160816; b=muoCR3UZrSAQAAFSeUAzFHoh3SrjKnLaNAxSn0oduTSyV/k8IQlRAZTDuC7gXWBxz3 DokuVyiszjo4mHPvJRwE4R6bmpVpfMKNWt+ZjKqLxZXgWXt/A2BTF5uRFHR2k8rHbGcS zCnHtMZ7afo/skbjVlIjl2vFACZ3fQ/jyXmrQEzDpBqBEEEcGXJJijebv9PW8FIelopi QOX8W+jFi5a5v4pMpXFebVfyg69HtMrhDYA+LWAsqEU816q2K4sFw/A8PsK4A0ZxqYDN K0hirpYr0UVDXSYVfbDMrr8aXxy4J/xH7+9oWnm/RDgLjnvevK6xMXTgDofJuHV6nJcO Xdeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=QPh+YAxBFGSvL/KdozvY7LZ+gpMSLIpw5zeVkurBM2s=; b=vH7gz1SyUdaDzpz3o+g3aZuf02eEAKjZMfO5NMDDYftFoi5pteIuLtqi9bTfhrjlIh xHpi/L4y4gKyJl/5k9iV2o8trVkfAWfV6TbHhgSp/NWlRnUA+xkrPH+blmTm1SaCTzQW Bi05WvEb/UrJDGx67+jrvbbtU7si46tDsjMzJ1IxiBKQCS/Yz+0PxiWK3/5Y1lAWzk8d lu4+ngzhJUdQt+0Ht4QxhC3e2VKDw5pkEWaErkUQQkNOE2rTojBAEpV1kChfb3ppC4cK oFKSXjhX/HVuZHoDbhFyFok8gl5FCbA++GkN8We6QzCTxbTAefso/17FMDy2Z8WhSUnl l4Yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si2709966pgs.172.2019.03.20.16.07.39; Wed, 20 Mar 2019 16:07:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727577AbfCTXGw (ORCPT + 99 others); Wed, 20 Mar 2019 19:06:52 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:43305 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbfCTXGw (ORCPT ); Wed, 20 Mar 2019 19:06:52 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04427;MF=yang.shi@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0TNEARE5_1553123205; Received: from US-143344MP.local(mailfrom:yang.shi@linux.alibaba.com fp:SMTPD_---0TNEARE5_1553123205) by smtp.aliyun-inc.com(127.0.0.1); Thu, 21 Mar 2019 07:06:48 +0800 Subject: Re: [PATCH] mm: mempolicy: make mbind() return -EIO when MPOL_MF_STRICT is specified To: Andrew Morton , Souptick Joarder Cc: chrubis@suse.cz, Vlastimil Babka , kirill@shutemov.name, osalvador@suse.de, stable@vger.kernel.org, Linux-MM , linux-kernel@vger.kernel.org References: <1553020556-38583-1-git-send-email-yang.shi@linux.alibaba.com> <20190320151630.9c7c604a96f0a892c29befdc@linux-foundation.org> From: Yang Shi Message-ID: Date: Wed, 20 Mar 2019 16:06:44 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20190320151630.9c7c604a96f0a892c29befdc@linux-foundation.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/20/19 3:16 PM, Andrew Morton wrote: > On Wed, 20 Mar 2019 11:23:03 +0530 Souptick Joarder wrote: > >>> --- a/mm/mempolicy.c >>> +++ b/mm/mempolicy.c >>> @@ -447,6 +447,13 @@ static inline bool queue_pages_required(struct page *page, >>> return node_isset(nid, *qp->nmask) == !(flags & MPOL_MF_INVERT); >>> } >>> >>> +/* >>> + * The queue_pages_pmd() may have three kind of return value. >>> + * 1 - pages are placed on he right node or queued successfully. >> Minor typo -> s/he/the ? > Yes, that comment needs some help. This? > > --- a/mm/mempolicy.c~mm-mempolicy-make-mbind-return-eio-when-mpol_mf_strict-is-specified-fix > +++ a/mm/mempolicy.c > @@ -429,9 +429,9 @@ static inline bool queue_pages_required( > } > > /* > - * The queue_pages_pmd() may have three kind of return value. > - * 1 - pages are placed on he right node or queued successfully. > - * 0 - THP get split. > + * queue_pages_pmd() has three possible return values: > + * 1 - pages are placed on the right node or queued successfully. > + * 0 - THP was split. > * -EIO - is migration entry or MPOL_MF_STRICT was specified and an existing > * page was already on a node that does not follow the policy. > */ It looks good to me. Thanks, Andrew. Yang > _