Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp249049imm; Tue, 21 Aug 2018 18:50:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZt2teZaCzPyf5kSL079OllKf0wgYQFj4P2/clRUiQ3XbUKr2Z5CbLBiBf4AgGG5CBnPXo8 X-Received: by 2002:a17:902:5acc:: with SMTP id g12-v6mr1942616plm.90.1534902617800; Tue, 21 Aug 2018 18:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534902617; cv=none; d=google.com; s=arc-20160816; b=MI9vJZE72ru1Dem0viZTe/GRjhxhrJxEw5bn9NrURKa0gkv9Yc1TA+2QADstOugC8A PSVWj7CvM5wez7qYtWYXAt+CsIOyi4ZtrH1XAjf79SfWp+VfdokpAj0mN+hzm4JqpPf+ KibZSbH0QKfIaIZnw0jIIWsTdMRNQvOHaDiTRQImpR/qwvIIqm23d6xCgA4PHO/9rzTT yL2lVYHd03iSMewEhgLOOSNkbo4Mi+Ts91isLcJHv3n92GalBI7WiGf4hdBLQ+N1WoQ9 JTmyPTMIValZT4sYu8siEB1hqKj12GxyOyK1KThdkm9rzpBpdc47PSHMLDv1n0ghD3VB Cqbg== 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 :arc-authentication-results; bh=OgFG2iXxHnzja4iB4rVGYMkh0ksH+olz8yByYPgVIbk=; b=OgJ80u8CdtqBi++7itk5xmpOWfyhH89zWdpAkGQLi9VODjgfr9sHeP5cS3w8pYS0vb /3kQNf1uirBxPVa6rdWNX7j3DHkUmqWji3piPdr5A9Yz6iChypYQAC3zZ6PHMKXh25xz 77MKNKB0OCty9/42plZCv68bU5K3yqvILqtG0ZP2Hj/zRdNItuRPwkub9qHQHkbjvYzY Elp3PzzoqPM2oP7b6WOSLPj9L7FfTb7nadL7qQynDw67rJw3ZYbSHGldB51zdp3DOepG VbfN+5z6a0gllEj7VNHynU5drsb2CiyvxxQ87SStleFeGFajSZB/RsrIE4pV+9RUgBWB DSZQ== 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 d24-v6si336351pls.477.2018.08.21.18.50.00; Tue, 21 Aug 2018 18:50:17 -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 S1727505AbeHVFCt convert rfc822-to-8bit (ORCPT + 99 others); Wed, 22 Aug 2018 01:02:49 -0400 Received: from tyo162.gate.nec.co.jp ([114.179.232.162]:51306 "EHLO tyo162.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726357AbeHVFCt (ORCPT ); Wed, 22 Aug 2018 01:02:49 -0400 Received: from mailgate01.nec.co.jp ([114.179.233.122]) by tyo162.gate.nec.co.jp (8.15.1/8.15.1) with ESMTPS id w7M1dxko006758 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 22 Aug 2018 10:39:59 +0900 Received: from mailsv02.nec.co.jp (mailgate-v.nec.co.jp [10.204.236.94]) by mailgate01.nec.co.jp (8.15.1/8.15.1) with ESMTP id w7M1dx8I026088; Wed, 22 Aug 2018 10:39:59 +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 w7M1bci4002501; Wed, 22 Aug 2018 10:39:59 +0900 Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.150] [10.38.151.150]) by mail03.kamome.nec.co.jp with ESMTP id BT-MMP-2975987; Wed, 22 Aug 2018 10:37:50 +0900 Received: from BPXM23GP.gisp.nec.co.jp ([10.38.151.215]) by BPXC22GP.gisp.nec.co.jp ([10.38.151.150]) with mapi id 14.03.0319.002; Wed, 22 Aug 2018 10:37:49 +0900 From: Naoya Horiguchi To: Andrew Morton CC: "linux-mm@kvack.org" , Michal Hocko , "xishi.qiuxishi@alibaba-inc.com" , "zy.zhengyi@alibaba-inc.com" , "linux-kernel@vger.kernel.org" , Mike Kravetz Subject: Re: [PATCH v2 0/2] mm: soft-offline: fix race against page allocation Thread-Topic: [PATCH v2 0/2] mm: soft-offline: fix race against page allocation Thread-Index: AQHUNOlnrqT+pxWFwUe9BDyggy7ShKTKcMQA Date: Wed, 22 Aug 2018 01:37:48 +0000 Message-ID: <20180822013748.GA10343@hori1.linux.bs1.fc.nec.co.jp> References: <1531805552-19547-1-git-send-email-n-horiguchi@ah.jp.nec.com> <20180815154334.f3eecd1029a153421631413a@linux-foundation.org> In-Reply-To: <20180815154334.f3eecd1029a153421631413a@linux-foundation.org> Accept-Language: en-US, ja-JP Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.51.8.80] 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 Wed, Aug 15, 2018 at 03:43:34PM -0700, Andrew Morton wrote: > On Tue, 17 Jul 2018 14:32:30 +0900 Naoya Horiguchi wrote: > > > I've updated the patchset based on feedbacks: > > > > - updated comments (from Andrew), > > - moved calling set_hwpoison_free_buddy_page() from mm/migrate.c to mm/memory-failure.c, > > which is necessary to check the return code of set_hwpoison_free_buddy_page(), > > - lkp bot reported a build error when only 1/2 is applied. > > > > > mm/memory-failure.c: In function 'soft_offline_huge_page': > > > >> mm/memory-failure.c:1610:8: error: implicit declaration of function > > > 'set_hwpoison_free_buddy_page'; did you mean 'is_free_buddy_page'? > > > [-Werror=implicit-function-declaration] > > > if (set_hwpoison_free_buddy_page(page)) > > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > is_free_buddy_page > > > cc1: some warnings being treated as errors > > > > set_hwpoison_free_buddy_page() is defined in 2/2, so we can't use it > > in 1/2. Simply doing s/set_hwpoison_free_buddy_page/!TestSetPageHWPoison/ > > will fix this. > > > > v1: https://lkml.org/lkml/2018/7/12/968 > > > > Quite a bit of discussion on these two, but no actual acks or > review-by's? Really sorry for late response. Xishi provided feedback on previous version, but no final ack/reviewed-by. This fix should work on the reported issue, but rewriting soft-offlining without PageHWPoison flag would be the better fix (no actual patch yet.) I'm not sure this patch should go to mainline immediately. Thanks, Naoya Horiguchi