Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp507775ybg; Fri, 18 Oct 2019 03:14:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdGpYnHIuc7QsmVZugD/ip0CkK6X6iTM7spv6Mkjw14D6KUUg9itV52ySclNFUoqkbV41z X-Received: by 2002:a17:906:90c2:: with SMTP id v2mr7780624ejw.98.1571393687178; Fri, 18 Oct 2019 03:14:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571393687; cv=none; d=google.com; s=arc-20160816; b=08bY6RzNofY/fr7BMBkJ0+a/E9WTJ4Kyx4gB8t64Wo9PHq5XQ6DUnhpmRWSBwqg7AD VPkT4tnUn6JSzGcP/uw6k+Nnl+a/UDEUnATPx3DorLPPz63YQbylhdql1HVDJp0iFkyx osuHnGFcNi8YvDoDnQxjDV8rqe2AZS1iVJ0eK24SLiB3OFgvTHlfPpNGG/zkO7+xVul5 ExCWXb/K8je9xITaoGqf2htcxDSLHrXt4coU6Bg5IPB5JbocfESoPGeVv5obDXzkq4vn aCQFQZwy8eyaqzVUp8mh2cnB61vxIAinHum2GT/ZBUovvZILal+rfd1KYjnoNfaW8rgj MjbA== 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=QGbc5w7kCKlm9w+ni4CP+EfZ25cwL55z4wuBupYIS9U=; b=XvCM56uvF+iK4QCtlQ7NGy7ICRvfrAry0g8H95MRKa2gvlUKGZK0isSH8igZfijulC mM2d1yDsA6pkYSyjnBiuLwMBilj64wU9tTD6U0Wnyula/ZFyUegcBH3NzvVo02RZGR2X nk+X5pzmQS+1/s1aFfmYtx6xeOIWGBIeQur2JLMCPyWuRpVs27HdSTdlNtY0f8e/bqDC MzvP6WN1dE9hifAO7vc2XNPudewaEg4UJ6zy9uYYtdi/ggyBCqnPgnn7BtOgtQeRzM4q RAEbnP6oNyMRhn1eoB/H2V+2uET7P0WKRP3DPWNxY5q2/yHbd/AyXvYNxn5Xi2WNdSF1 pklw== 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 w20si3644215edc.202.2019.10.18.03.14.23; Fri, 18 Oct 2019 03:14:47 -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 S2438311AbfJQIDZ (ORCPT + 99 others); Thu, 17 Oct 2019 04:03:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:57330 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389100AbfJQIDZ (ORCPT ); Thu, 17 Oct 2019 04:03:25 -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 2B1E5AF05; Thu, 17 Oct 2019 08:03:24 +0000 (UTC) Date: Thu, 17 Oct 2019 10:03:21 +0200 From: Oscar Salvador To: Naoya Horiguchi Cc: David Hildenbrand , Naoya Horiguchi , "linux-mm@kvack.org" , Michal Hocko , "linux-kernel@vger.kernel.org" , Andrew Morton Subject: Re: [PATCH] mm, soft-offline: convert parameter to pfn Message-ID: <20191017080315.GA31827@linux> References: <20191016070924.GA10178@hori.linux.bs1.fc.nec.co.jp> <20191016082735.GB13770@hori.linux.bs1.fc.nec.co.jp> <20191016085359.GD13770@hori.linux.bs1.fc.nec.co.jp> <997b5b51-db71-3e27-1f84-cbaa24fa66c7@redhat.com> <20191016234706.GA5493@www9186uo.sakura.ne.jp> <20191017075018.GA10225@hori.linux.bs1.fc.nec.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191017075018.GA10225@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 Thu, Oct 17, 2019 at 07:50:18AM +0000, Naoya Horiguchi wrote: > Actually I guess that !pfn_valid() never happens when called from > madvise_inject_error(), because madvise_inject_error() gets pfn via > get_user_pages_fast() which only returns valid page for valid pfn. > > And we plan to remove MF_COUNT_INCREASED by Oscar's re-design work, > so I start feeling that this patch should come on top of his tree. Hi Naoya, I am pretty much done with my testing. If you feel like, I can take the patch and add it on top of [1] , then I will do some more testing and, if nothing pops up, I will send it upstream. [1] https://github.com/leberus/linux/tree/hwpoison-v2 > > Thanks, > Naoya Horiguchi -- Oscar Salvador SUSE L3