Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4034666ybi; Tue, 18 Jun 2019 10:35:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmmRtruyt3FZx5eA2ZM95OwQfNVocRZfbLcFIHlOhnXhhYHFOFMFuDJxvO7jbrSFSUbP5r X-Received: by 2002:a63:2355:: with SMTP id u21mr3639369pgm.205.1560879335567; Tue, 18 Jun 2019 10:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560879335; cv=none; d=google.com; s=arc-20160816; b=A1uZq7SlAQYGfnoHHdOt+xajlZjNqmh0otQaK3zmaWN3kzL55jyANTaFQXRyRVeVDK Uh/eyUTK4wsKVpR+N5K70u/meHuRZIjRv+aAcCusgkditCh7gFyy7oTAuFX/ARvAXGEx VbGQyPfsR3lw0kl/yldmVacsT5AObMyR9zFbJlab1GzW1XNHP+eBvt5RQbUxC44qEPwZ lhxiDBdFVXJD54vE9A2y/m71uF4ahJCxfUF2nls/amUZsTpQzacn23cQ6qKKrHiw0gzk eI3I2a3tVmlnHHEIrHSPLmzGfJwfldJeSL33EVmMH12y3JzVdxdm060zAuX9m5hM4l9K RS4w== 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:dkim-signature; bh=A/pDYyQdkl9FaixeSmyGWxOfU59IEYoWIfih+uEmTeI=; b=Ipyt/EvgtQf8xoSkDGKe8kQ6VywVHRy2T2i+bHHLFkSWHCAQyiFGOjrnn5M9JdONiM Z1H+7D+wpue8oAhUSEKzMbSScCUx2WCEo7ACn9nHb7NwBEx6ZWxIr4q+MiKamRdEleNu PjbzDKYwcCwwfpdOVOt27qnJWmKeil45L6WBJpuWc6JDSwlDHUHfnp/9CunWJh3ihnt7 HBmTGXcN3cGwYddLUfdMhgUSDIJOKjOtFk86gepcL7UGBuzOr4KC8/hB7Zmflad8mn1T nNEJ/NbNLFbMN8+ncE+VaXQ45BTYrcy//fAxJc5j3eClWvreCtcp42QHIQQOe1BUaVJQ qslg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=lJjmI7tB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si13559250plb.407.2019.06.18.10.35.20; Tue, 18 Jun 2019 10:35:35 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=lJjmI7tB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729997AbfFRRdX (ORCPT + 99 others); Tue, 18 Jun 2019 13:33:23 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:50056 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728572AbfFRRdX (ORCPT ); Tue, 18 Jun 2019 13:33:23 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5IHTFVh075820; Tue, 18 Jun 2019 17:33:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=A/pDYyQdkl9FaixeSmyGWxOfU59IEYoWIfih+uEmTeI=; b=lJjmI7tBEaYn1cbGnRysa5fMWQO81kczzRYs84lCEtDKkpNI2x3l058vM7adE2wa52LG WIStoIGsXKuH61i4DA2E/5/1C3rLqo9QcTrYGOmRPlIz4qSuS9Fk9zKzNPv6vIBHuVAh xVbNHKt1uTL7jIWmc1UO1ZNRgiOMyQCrgD/BN/7yOR8EhBb+AQFJl0xrVF7HDpf3YZJE jEPQxnnVUfbCSvdlk82HKwBkYLET98Tljv+mTQJtdlgxtlwuv7Imw3WdfZP5MV8R2huH vYapILMyj0J313xxK08FESqKkBwKJRWblaLiLoRfx5FuxdivjgPLgSoW6k/C9UerBFi6 DA== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 2t4saqdvdx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Jun 2019 17:33:06 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5IHVZKn162872; Tue, 18 Jun 2019 17:33:06 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 2t59gdysch-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Jun 2019 17:33:06 +0000 Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x5IHX3FN027699; Tue, 18 Jun 2019 17:33:04 GMT Received: from [192.168.1.222] (/71.63.128.209) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 18 Jun 2019 10:33:03 -0700 Subject: Re: [PATCH v3 1/2] mm: soft-offline: return -EBUSY if set_hwpoison_free_buddy_page() fails To: Naoya Horiguchi , linux-mm@kvack.org Cc: Andrew Morton , Michal Hocko , xishi.qiuxishi@alibaba-inc.com, "Chen, Jerry T" , "Zhuo, Qiuxu" , linux-kernel@vger.kernel.org, Anshuman Khandual References: <1560761476-4651-1-git-send-email-n-horiguchi@ah.jp.nec.com> <1560761476-4651-2-git-send-email-n-horiguchi@ah.jp.nec.com> From: Mike Kravetz Message-ID: Date: Tue, 18 Jun 2019 10:33:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1560761476-4651-2-git-send-email-n-horiguchi@ah.jp.nec.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9292 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=2 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906180139 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9292 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906180140 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/17/19 1:51 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. > > Without this fix, there are cases where madvise(MADV_SOFT_OFFLINE) may > not offline the original page and will not return an error. It might > lead us to misjudge the test result when set_hwpoison_free_buddy_page() > actually fails. > > Signed-off-by: Naoya Horiguchi Thanks for the updates, Reviewed-by: Mike Kravetz -- Mike Kravetz