Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp832659img; Wed, 20 Mar 2019 11:49:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8F9bT2hEHaTvUxPHHWqDZo3zvujv5fAyv8H02gIT0NtCGCcqMrMzZqD6YzeV5cqp3aGIh X-Received: by 2002:a17:902:a5c3:: with SMTP id t3mr9865656plq.293.1553107792329; Wed, 20 Mar 2019 11:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553107792; cv=none; d=google.com; s=arc-20160816; b=x0OVmd1pklbScdMcBZ+tukARxZGrrOkboUQIkopH2S0/NhPDQAHT9fgKTx0a8MX7Y0 OEKdYHl1Ve9WrX51R5zG8Zaa8mbxJKQBl1oJVzkgjtYzAgL12ESa8oDTTnfJgurU/e5Q j5JpygwMqZCb+oJjMWLvKh78y37pT50vIJ8+f4hpqN39p7NPMvX6wp/GYA0HwIG2CoVZ NHWyV7Y4zqTrnALmDO1U8uxMuE/KfkJfTUam7tDWWKGOyMrTQpvk4UNb2nVqfTUbtPTu VBfYSdrX2gFnb94nCFg225AwV2KY0vlaBhCcQ55xHd2/GqVO+WVxgGXMDvh+CziFtAQZ Ghrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=Aj/YWbUIlUK1XmZv4Ol/+2hNlNhnNBxVkAGpleoPK9I=; b=Q2u+UWwoBQ8bADum4JLdfEmGM9N/0QJg2rdNAn0q9KWq6gho1mOHhEEY2H/u6fy6fv 4a2718CqX6D9LdrfTUJddeOG4p8k8TqasXU7dvWFqPQAUkrgopaT4ncA7oz604EvdIhd RP+4TQHM/wFE8Bv3faEDH0k8o7HYEGTdUEEWYMI3CiorxN8ko5HkHZY/a6GTJ8MBfD7L 05YbSOfuJUASR8KrtTpA+5krv3M8pW/cUM0Sa3ixP1eUZPOPsJAxqfjBd8gQJmt751sy RKTT9xk6osSjywigbe+LJyV2R7CqCMZ8ULcgD+uwrUI7SxbPg9AbgCsd8uBdq1VibFJR lsBw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f65si2286746pff.195.2019.03.20.11.49.34; Wed, 20 Mar 2019 11:49:52 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727382AbfCTSsw (ORCPT + 99 others); Wed, 20 Mar 2019 14:48:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:48646 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727166AbfCTSsw (ORCPT ); Wed, 20 Mar 2019 14:48:52 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B22A6AFBF; Wed, 20 Mar 2019 18:48:50 +0000 (UTC) Message-ID: <1553107714.2927.2.camel@suse.de> Subject: Re: [PATCH] mm: mempolicy: make mbind() return -EIO when MPOL_MF_STRICT is specified From: Oscar Salvador To: Yang Shi Cc: chrubis@suse.cz, vbabka@suse.cz, kirill@shutemov.name, akpm@linux-foundation.org, stable@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Date: Wed, 20 Mar 2019 19:48:34 +0100 In-Reply-To: <3c880e88-6eb7-cd6d-fbf3-394b89355e10@linux.alibaba.com> References: <1553020556-38583-1-git-send-email-yang.shi@linux.alibaba.com> <20190320081643.3c4m5tec5vx653sn@d104.suse.de> <3c880e88-6eb7-cd6d-fbf3-394b89355e10@linux.alibaba.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-03-20 at 11:31 -0700, Yang Shi wrote: > No, this is not correct. queue_pages_pmd() may return 0, which means > THP > gets split. If it returns 0 the code should just fall through instead > of > returning. Right, I overlooked that. > It sounds not correct to me. We need check if there is existing page > on > the node which is not allowed by the policy. This is what > queue_pages_required() does. Bleh, I guess it was too early in the morning. That is the whole point of it actually, so that was quite wrong. Sorry for trying to mislead you ;-) Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE L3