Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3824103ybi; Mon, 10 Jun 2019 17:59:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqznMIh/PbouRkilRNol4pU49TzKC6w5NxNpsHe2g3PsaYMqM8o8kJfTyAIshBREsw/pI3Ua X-Received: by 2002:aa7:956d:: with SMTP id x13mr38096130pfq.132.1560214748052; Mon, 10 Jun 2019 17:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560214748; cv=none; d=google.com; s=arc-20160816; b=pMCUk77yxrHaO9YNvtZQbW4tPb/4hj+IBhciFrrIpfP/seeMaYyLoQvy5gGe1ZswAu pBba4ybdtKupsi3TWWjG311/AtFAxlgKch31t5O/4XBiw66F3Xh/n+yYndChiDxTTnbN qoNEUTm4N34/n6zM+vldbhQCTi/TYMrTwL+3w886ufEl846Kx3fl+KHbAxyhskf0gVph aIZIE5q4RjQJROu5GPNSeg9q1QHZtwUVOQEYRdIH7ZzAxsRY4Q1lvuPpuvL0jec5JvwM WaVQlvgzKMHGBowlZXDpSmf0TsMeVOVbWawGdn2ov/WnnoAmx2F4o5xLYH5613FG6UYS RSbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=DgeymH2lxbJAlr9IvB1OktmHs9Uni/4YrSUdGh3rizE=; b=D4acvcz3YXRiti532ttSJpiDFxvJWohyVhYNyhVHqO4QYYbU15wF2z1FKi01qDZbTh +pWTea6XFBGNDQY24nrxA3OEAycxFVHgj8LrjY6nPCj6V+dVFDD44ZiIJHil4hnJKSM0 btsS41ZA7CgXAKw12X8UqiLtb3Z8YsQoLa8spuLwB9+YnlGZSfD4mTH/TVG23eiinR7K 81/5tt4vpGm0jvQ1qZT95vSNxBPlJqP0qhA4llXieUanWUkAb77+cd335sPSeUHDzFLf LATS6BEpD2s+NbRJgPc+6kpsFSSNuYnjcsXPQAZvsVcANeNvcmbt5cKyUaGhxuWBp1fA zLyQ== 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 a129si11655993pfb.222.2019.06.10.17.58.53; Mon, 10 Jun 2019 17:59:08 -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 S2390158AbfFKA6d convert rfc822-to-8bit (ORCPT + 99 others); Mon, 10 Jun 2019 20:58:33 -0400 Received: from tyo162.gate.nec.co.jp ([114.179.232.162]:40203 "EHLO tyo162.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389168AbfFKA6d (ORCPT ); Mon, 10 Jun 2019 20:58:33 -0400 Received: from mailgate02.nec.co.jp ([114.179.233.122]) by tyo162.gate.nec.co.jp (8.15.1/8.15.1) with ESMTPS id x5B0wFYO024190 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 11 Jun 2019 09:58:15 +0900 Received: from mailsv02.nec.co.jp (mailgate-v.nec.co.jp [10.204.236.94]) by mailgate02.nec.co.jp (8.15.1/8.15.1) with ESMTP id x5B0wFlq001013; Tue, 11 Jun 2019 09:58:15 +0900 Received: from mail03.kamome.nec.co.jp (mail03.kamome.nec.co.jp [10.25.43.7]) by mailsv02.nec.co.jp (8.15.1/8.15.1) with ESMTP id x5B0qXb2026225; Tue, 11 Jun 2019 09:58:14 +0900 Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.147] [10.38.151.147]) by mail01b.kamome.nec.co.jp with ESMTP id BT-MMP-5834591; Tue, 11 Jun 2019 09:57:09 +0900 Received: from BPXM23GP.gisp.nec.co.jp ([10.38.151.215]) by BPXC19GP.gisp.nec.co.jp ([10.38.151.147]) with mapi id 14.03.0319.002; Tue, 11 Jun 2019 09:57:09 +0900 From: Naoya Horiguchi To: 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" Subject: Re: [PATCH v2 1/2] mm: soft-offline: return -EBUSY if set_hwpoison_free_buddy_page() fails Thread-Topic: [PATCH v2 1/2] mm: soft-offline: return -EBUSY if set_hwpoison_free_buddy_page() fails Thread-Index: AQHVH2UNBW9Lhf3e5UinMjf59GXrMKaVARSAgAAKeoA= Date: Tue, 11 Jun 2019 00:57:08 +0000 Message-ID: <20190611005715.GB5187@hori.linux.bs1.fc.nec.co.jp> 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> In-Reply-To: <8e8e6afc-cddb-9e79-c8ae-c2814b73cbe9@oracle.com> Accept-Language: en-US, ja-JP Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.34.125.96] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-TM-AS-MML: disable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > Are there any other visible > effects? I can't think of other ones. - Naoya