From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B010BCA9EA0 for ; Tue, 22 Oct 2019 08:00:06 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8B30120B7C for ; Tue, 22 Oct 2019 08:00:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B30120B7C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3D06E6B0006; Tue, 22 Oct 2019 04:00:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 380B36B0008; Tue, 22 Oct 2019 04:00:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 296B46B000A; Tue, 22 Oct 2019 04:00:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0133.hostedemail.com [216.40.44.133]) by kanga.kvack.org (Postfix) with ESMTP id 0A7476B0006 for ; Tue, 22 Oct 2019 04:00:06 -0400 (EDT) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id 7F923181AEF23 for ; Tue, 22 Oct 2019 08:00:05 +0000 (UTC) X-FDA: 76070672370.26.can73_1ddac07c6375e X-HE-Tag: can73_1ddac07c6375e X-Filterd-Recvd-Size: 2057 Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by imf01.hostedemail.com (Postfix) with ESMTP for ; Tue, 22 Oct 2019 08:00:03 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 51494B872; Tue, 22 Oct 2019 08:00:02 +0000 (UTC) Date: Tue, 22 Oct 2019 10:00:00 +0200 From: Oscar Salvador To: Naoya Horiguchi Cc: "mhocko@kernel.org" , "mike.kravetz@oracle.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH v2 10/16] mm,hwpoison: Rework soft offline for free pages Message-ID: <20191022075959.GD19060@linux> References: <20191017142123.24245-1-osalvador@suse.de> <20191017142123.24245-11-osalvador@suse.de> <20191021074533.GA10507@hori.linux.bs1.fc.nec.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191021074533.GA10507@hori.linux.bs1.fc.nec.co.jp> User-Agent: Mutt/1.10.1 (2018-07-13) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Oct 21, 2019 at 07:45:33AM +0000, Naoya Horiguchi wrote: > > +extern bool take_page_off_buddy(struct page *page); > > + > > +static void page_handle_poison(struct page *page) > > hwpoison is a separate idea from page poisoning, so maybe I think > it's better to be named like page_handle_hwpoison(). Yeah, that sounds better. > BTW, if we consider to make unpoison mechanism to keep up with the > new semantics, we will need the reverse operation of take_page_off_buddy(). > Do you think that that part will come with a separate work? Well, I am not really sure. Since we grab a refcount in page_handle_poison, all unpoison mechanism does is a "put_page", that should send the page back to buddy/pcp lists. I did not spot any problem when testing it, but I will double check. Thanks Naoya. -- Oscar Salvador SUSE L3