Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp965697ybt; Wed, 24 Jun 2020 16:06:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAIWYOPmOYdGWECNBBRvUs9B6MDhTOV9ZhPeWNuIDr6ujcFgtyeBlm0D8olyGLVKAH4X85 X-Received: by 2002:a17:907:33ce:: with SMTP id zk14mr26803932ejb.2.1593040000278; Wed, 24 Jun 2020 16:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593040000; cv=none; d=google.com; s=arc-20160816; b=tOKbEA/aJ8quPM3+mEvpubF2E+JYD173CkUzEm3zH85qO4rr3uIzZZWXLWUSUKwCpR spS6XrQuzE0ZwmSZyE6rMdNufErh+4afsFYleEDyiOS7CouIsBJGiFjn27HpPzW5DURL qaoqtjjMaIGG4CuJ9Gp5q2ZgfmOMjhATfp6tVA3g/VEn8qUwG+lO/JkZ9DPbMGH9sYJ3 icOQ81JSNKw2SP1HodhsY3A82e6MN8htqGzYMcBFLGvBgEriggjwS9Di4DCuXURilAEm 1HcftjNUu+oNZPQqzAsmwJhoKVohwdBvYmrWaVivj1hi0dP8+RpEgUWV/fJoqhfEzCQR iMWA== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ImSt9dU/Wt4n1VOLmBcpBGNMH7k1OFHsBewqZY3VRAo=; b=DYVVUJGXoV6dZKcDZVSIYNNAoHNNBTx+EL1/mIRmdT5whxpNgvN9tmak5WEa7ibmpx nrnOgPn0b45I54kVMEc8CA/JYNbCfOOgqUXumMTZZBoj4efoyZSusgkNicLjYjE94ZpB eGGo8c00s2yYXll1Z6UKwPBEtFh8HI5cBbNRk2GvKovqB6yZOYMRAM33HPczVKGxTM7q gucctiNjV9qZ2EdTEkOueH0PJyfU4V2g+5maQ4eO8pPN67wSrGI6Y+WrsSjZrNHv4gEU vsPsEpkXUgEzD0KgoXHc7lpmzry/eB0lMGGDUvPFnV3jLxT6qdxFxNObmSgRX/xOUqGe /LtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=default header.b=tyqEQyYn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si5448950edy.84.2020.06.24.16.06.17; Wed, 24 Jun 2020 16:06:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=default header.b=tyqEQyYn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389320AbgFXWtt (ORCPT + 99 others); Wed, 24 Jun 2020 18:49:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:42294 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388711AbgFXWtt (ORCPT ); Wed, 24 Jun 2020 18:49:49 -0400 Received: from X1 (nat-ab2241.sltdut.senawave.net [162.218.216.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 45BE92065D; Wed, 24 Jun 2020 22:49:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593038988; bh=+Xiia5lz5jMxPkcFiSIcy2n0z1B9hfXtGE0im/2wmaI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tyqEQyYnCLpAXNAjThece3itLPMPam/8cGEiE9U1sggON915fah27trGQB5tulRRK T33Ra4e4yfl3IjKj3fYmxzC/HvLZmbLCcMxk1pZ/pnGC0169/YA7zcuM8ptR3Vbiw7 JerXELY9gmukeBuv6Rfq9DEfEVIhgShZYKoJYXWY= Date: Wed, 24 Jun 2020 15:49:47 -0700 From: Andrew Morton To: HORIGUCHI =?UTF-8?B?TkFPWUE=?= (=?UTF-8?B?5aCA5Y+j44CA55u05Lmf?=) Cc: "nao.horiguchi@gmail.com" , "linux-mm@kvack.org" , "mhocko@kernel.org" , "mike.kravetz@oracle.com" , "osalvador@suse.de" , "tony.luck@intel.com" , "david@redhat.com" , "aneesh.kumar@linux.vnet.ibm.com" , "zeil@yandex-team.ru" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 00/15] HWPOISON: soft offline rework Message-Id: <20200624154947.2f41c426d4b83fb9241d8584@linux-foundation.org> In-Reply-To: <20200624223618.GA13133@hori.linux.bs1.fc.nec.co.jp> References: <20200624150137.7052-1-nao.horiguchi@gmail.com> <20200624121742.711331a2a65633a0e16fd9e6@linux-foundation.org> <20200624223618.GA13133@hori.linux.bs1.fc.nec.co.jp> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Jun 2020 22:36:18 +0000 HORIGUCHI NAOYA(堀口 直也) wrote: > On Wed, Jun 24, 2020 at 12:17:42PM -0700, Andrew Morton wrote: > > On Wed, 24 Jun 2020 15:01:22 +0000 nao.horiguchi@gmail.com wrote: > > > > > I rebased soft-offline rework patchset [1][2] onto the latest mmotm. The > > > rebasing required some non-trivial changes to adjust, but mainly that was > > > straightforward. I confirmed that the reported problem doesn't reproduce on > > > compaction after soft offline. For more precise description of the problem > > > and the motivation of this patchset, please see [2]. > > > > > > I think that the following two patches in v2 are better to be done with > > > separate work of hard-offline rework, so it's not included in this series. > > > > > > - mm,hwpoison: Take pages off the buddy when hard-offlining > > > - mm/hwpoison-inject: Rip off duplicated checks > > > > > > These two are not directly related to the reported problem, so they seems > > > not urgent. And the first one breaks num_poisoned_pages counting in some > > > testcases, and The second patch needs more consideration about commented point. > > > > > > > It would be nice to have some sort of overview of the patch series in > > this [0/n] email. > > > > > [1] v1: https://lore.kernel.org/linux-mm/1541746035-13408-1-git-send-email-n-horiguchi@ah.jp.nec.com/ > > > [2] v2: https://lore.kernel.org/linux-mm/20191017142123.24245-1-osalvador@suse.de/ > > > > The above have such, but are they up to date? > > The description of the problem doesn't change, but there're some new patches > and some patches are postponed, so I should've added an overview of this series: > > - patch 1, 2 are cleanups. > - patch 3, 4, 5 change the precondition when calling memory_failure(). Previously > we sometimes call it with holding refcount of the target page and somtimes call > without holding it, and we passed a flag of whether refcount was taken out of > memory_failure(). It was confusing and caused code more complex than needed. > - patch 6-10 are cleanups. > - patch 11 introduces new logic to remove the error page from buddy allocator, > which is also applied to the path of soft-offling in-use pages in patch 12. > - patch 13 is basically a refactoring but I added some adjustment to make sure > that the freed page is surely sent back to buddy instead of being kept in pcplist, > which is based on discussion in v2. > - patch 14 fixes the inconsistency of return values between injection interfaces. > - patch 15 is a new patch to complement missing code found in code review for > previous version. > > Core change is in patch 11 and 12, and the others are kind of cleanup/refactoring. And all the other words in https://lore.kernel.org/linux-mm/1541746035-13408-1-git-send-email-n-horiguchi@ah.jp.nec.com/ are still accurate and complete?