Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5311822ybg; Tue, 22 Oct 2019 01:01:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/AJkjXqgOW/385+t08ibZogffzSTQ2E2+nKZPEyzWF4VhKZ8RnbZkZ7rGwtJOdFRSscO9 X-Received: by 2002:a50:99d9:: with SMTP id n25mr13077563edb.263.1571731305294; Tue, 22 Oct 2019 01:01:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571731305; cv=none; d=google.com; s=arc-20160816; b=Qdq8ylMga/Y6x0LdJDOdfZA7TwLP8zafyqwVto3zY980LJ1Bk8Z8o/azEjaWyv8Foo F7mlKtdVVwPbUt/caxMY9YPiUkPXk4ZW8REkt1sWQSdzoa8Eo5rJ9ewqws/Y/iQXb55Q /7YMZAz+RjmZaXVvitJGPWK7KTMzwfMBAkQevV/3V01bKVKAxlW5bZEqNcOOjQiXTn8X 1ARvFD4bEs00Tvyd9Baj6AsdBnOBcFavQQwHhRvNHeh2s9JBoU+TbyBeGPOyy5thVZcg Xwf50trOUv0LybJnXiWaezIFYEwSiVv7f2QeaCu5gRVaRN3CEWJsw8fZPzwgkBeFy2+p m3cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=emw+Do1cmFr92V9RFctyD2Qiv15ceaeFyzu+tfsNFfs=; b=Kzrpsb1RYYYjv9UtMc6N8tZ3NePE9IYT3sbolAVaKS45K5efaqFYbswlTjQJPa25Lq AHourb7aT1LzOlEacUu7vIud9FcFxoESuc+X3rktVxkMI5X10vLLxtZEZL6getBgFuud tKK5SSVxEAlm2ceszVdsXhNOl040v3eZHFrfCWuQzFOQsEqWaRG3chbj/KvFMJyh7SbR m1In6vqbRXGfy0UklBa7ZkHXtHm0CkgFsdyqKuk0En+NT9CuHtWSxEve6ZKxXiiWX81h NgyJvc8H4ugN6nI5d9EZdyAIvOtEbvMBi6u0NLbGC+wPPgLfnLCRbleoR5slllZ4eb6h MSNw== 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 34si13235271edk.26.2019.10.22.01.01.20; Tue, 22 Oct 2019 01:01:45 -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 S2388050AbfJVIAE (ORCPT + 99 others); Tue, 22 Oct 2019 04:00:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:48700 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726978AbfJVIAD (ORCPT ); Tue, 22 Oct 2019 04:00:03 -0400 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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