Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4130550ybi; Tue, 11 Jun 2019 01:16:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBiwkb2jjVBiYvM6I5uUm1dsD1J9itxtFD6xtRRD+iUfwz5nruIEmd3JHsUYg61NDF8AwG X-Received: by 2002:a17:902:86:: with SMTP id a6mr8580383pla.244.1560240985734; Tue, 11 Jun 2019 01:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560240985; cv=none; d=google.com; s=arc-20160816; b=bSKvFaxLZbLzXouGY3OzibVnqzK4xl0L3mAtC5itH5f5JohikJRM5i8kupucSJLvOg qK88nkmJ3IVcl7B/+yqhW5DtH4vxNyszme8moXwSfhI9brqaPwdCmfHbHCsUx2Qi4wQV hv9y3re3SG2tC6nBiXYzVULAjnpJmK4Vsev4vonR30oSihRW5DF3tHLBepuG583jhj2q LOi2tteLcrsCR2XMWAup6MTkK1qoa5G9HTchFUKGGXN3MQ+diErIQsaCGOXaRqR5y9Tp CfyLWG7Rmwl4bIDaXYUyd+tlA9Sy1nj/hPBevifwm48+y1irfNj1VwK3gq3q7PX3EzJS i0dg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ZWq8OEuzCZpBJ21OEAhCH6HP5H4hUsFxTXMhE34ApCE=; b=dx9GFMn5jndK2KrILC8Nq05/wAebYxGOtvikYDuD7zvPqucelGfsoEZs5gdqV4cZV5 C9Y39yH9Zq5GF+3gDUxrAtL3OZ6+n+3yvljAvjU0Ql78bKGi32Fro59NfIZhI8AfmI3K nayCJ1qaQcoAa5Sr9TEa8OQE1QJEYLolS0074oFQ2jRFSrvS0ZDkqQ6Pd9SNvdAp7rIy 4nnNN8l/Gms0dOhrRVylzaCwi6n6ltl8vV9gA+OKJN5867ahR+wVEOzYJdg1Ty5GhwA5 w59G0HTM+CkZ7d33Ap361wDunbJVfW6JqqznruiG0oO2cD3EmFk0DcHCIGUrjllpBxjY WWZQ== 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 i1si1727390pjk.57.2019.06.11.01.16.09; Tue, 11 Jun 2019 01:16:25 -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 S2404557AbfFKIOc (ORCPT + 99 others); Tue, 11 Jun 2019 04:14:32 -0400 Received: from foss.arm.com ([217.140.110.172]:54794 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403996AbfFKIOb (ORCPT ); Tue, 11 Jun 2019 04:14:31 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6C22C346; Tue, 11 Jun 2019 01:14:31 -0700 (PDT) Received: from [10.162.43.135] (p8cg001049571a15.blr.arm.com [10.162.43.135]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 706593F73C; Tue, 11 Jun 2019 01:14:28 -0700 (PDT) Subject: Re: [PATCH v2 1/2] mm: soft-offline: return -EBUSY if set_hwpoison_free_buddy_page() fails To: Naoya Horiguchi , Mike Kravetz Cc: "linux-mm@kvack.org" , Andrew Morton , Michal Hocko , "xishi.qiuxishi@alibaba-inc.com" , "Chen, Jerry T" , "Zhuo, Qiuxu" , "linux-kernel@vger.kernel.org" References: <1560154686-18497-1-git-send-email-n-horiguchi@ah.jp.nec.com> <1560154686-18497-2-git-send-email-n-horiguchi@ah.jp.nec.com> <8e8e6afc-cddb-9e79-c8ae-c2814b73cbe9@oracle.com> <20190611005715.GB5187@hori.linux.bs1.fc.nec.co.jp> From: Anshuman Khandual Message-ID: <67bb5891-d0be-ffb8-3161-092c8167a960@arm.com> Date: Tue, 11 Jun 2019 13:44:46 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190611005715.GB5187@hori.linux.bs1.fc.nec.co.jp> Content-Type: text/plain; charset=iso-2022-jp Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/11/2019 06:27 AM, Naoya Horiguchi wrote: > On Mon, Jun 10, 2019 at 05:19:45PM -0700, Mike Kravetz wrote: >> On 6/10/19 1:18 AM, Naoya Horiguchi wrote: >>> The pass/fail of soft offline should be judged by checking whether the >>> raw error page was finally contained or not (i.e. the result of >>> set_hwpoison_free_buddy_page()), but current code do not work like that. >>> So this patch is suggesting to fix it. >>> >>> Signed-off-by: Naoya Horiguchi >>> Fixes: 6bc9b56433b76 ("mm: fix race on soft-offlining") >>> Cc: # v4.19+ >> >> Reviewed-by: Mike Kravetz > > Thank you, Mike. > >> >> To follow-up on Andrew's comment/question about user visible effects. Without >> this fix, there are cases where madvise(MADV_SOFT_OFFLINE) may not offline the >> original page and will not return an error. > > Yes, that's right. Then should this be included in the commit message as well ?