Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5392232ybi; Wed, 12 Jun 2019 01:35:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2cSCqLpjoQJ9PGG5APb6yDpTHWiWMkzCEPQ14aDpJR2uUumlhLorO0iW5qHgFL6ggGz7f X-Received: by 2002:a62:874f:: with SMTP id i76mr2126128pfe.118.1560328530129; Wed, 12 Jun 2019 01:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560328530; cv=none; d=google.com; s=arc-20160816; b=RFoCXNfOyFYVu6hb5Cuk8mMoRlnvSPrOWiVBr6kvSoltX+EIi6UUmztirP8TNOtEvp SadX6rC5aT0BRZNqOgCTKRDfpiKykIHEsCRdNa/rZk7H6jO2p/YcrDvCmlS9lCTjIsGy bX7dH6skVEUfXrd8xTV+NZU0MJr5tk/CyKp3SBbshjfm4SpllRJtDxz4X/ftaHbVhQcx JVJU1CXIn+0E5untPW1CTCkFMDTwwCEqJISJ9EAzsVn3A67R0xaIU3cK1ulIEcxDtFyO Xi7KXXKjmw2C2XsXH69FueGnkIC9QA6ws+3qfva6tB93runU76OWONnKuO76T5TF1caw MPWQ== 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=EohWJmFsiiMKVjOsz0TN2HVnJUYl8NSOy4jgfr31xYo=; b=eMxAlR/0ezt9zR/7UDOxOXpFd5ypjR2wF3Eo6EjNZ75xddLQq0EAjk+NUYdPOcr0YF Zd0vDevQ0qkFEMoF45qz+2MTpdlPbNPjzVyrgXNjlYSOXyFhMVtuCfXH6fMpo5EmnYwl VUKxI0tUzFMdb0euKyjw7/O28ZTnJQo7/1eOSKBwgW/F2cnIdD3Kl3D39RyuTj3pfv7H i3JM9PV6xASVO5g+ewgsI/ii0kPZ6ZtJKdpll8ElH4slxItRbjQgDFkMbyelaR/zd1LL 8Hcp0F0T7bVPXTYLg7+4CQkZuf+cj8McNMMoDyhn/ytVh681iBsrTWhto9u0w7DtkLSp We0g== 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 u6si16026206pga.360.2019.06.12.01.35.14; Wed, 12 Jun 2019 01:35:30 -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 S1731420AbfFLHZi convert rfc822-to-8bit (ORCPT + 99 others); Wed, 12 Jun 2019 03:25:38 -0400 Received: from tyo162.gate.nec.co.jp ([114.179.232.162]:38240 "EHLO tyo162.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728561AbfFLHZi (ORCPT ); Wed, 12 Jun 2019 03:25:38 -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 x5C7PBVo017699 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 12 Jun 2019 16:25:11 +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 x5C7PBwD001465; Wed, 12 Jun 2019 16:25:11 +0900 Received: from mail01b.kamome.nec.co.jp (mail01b.kamome.nec.co.jp [10.25.43.2]) by mailsv02.nec.co.jp (8.15.1/8.15.1) with ESMTP id x5C7NqIT021960; Wed, 12 Jun 2019 16:25:11 +0900 Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.147] [10.38.151.147]) by mail03.kamome.nec.co.jp with ESMTP id BT-MMP-1232875; Wed, 12 Jun 2019 15:48:25 +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; Wed, 12 Jun 2019 15:48:24 +0900 From: Naoya Horiguchi To: Anshuman Khandual CC: Mike Kravetz , "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: AQHVH2UNBW9Lhf3e5UinMjf59GXrMKaVARSAgAAKeoCAAHo+AIABejoA Date: Wed, 12 Jun 2019 06:48:23 +0000 Message-ID: <20190612064830.GA25015@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> <20190611005715.GB5187@hori.linux.bs1.fc.nec.co.jp> <67bb5891-d0be-ffb8-3161-092c8167a960@arm.com> In-Reply-To: <67bb5891-d0be-ffb8-3161-092c8167a960@arm.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.150] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: <65E535AA03EEC54FB0EF6A3FD422054B@gisp.nec.co.jp> 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 Tue, Jun 11, 2019 at 01:44:46PM +0530, Anshuman Khandual wrote: > > > 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 ? Right, I'll clarify the point in the description. Thanks, - Naoya