Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp508189ybg; Fri, 18 Oct 2019 03:15:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJfMBg675GmCy3LQzXYFKzev1DVoV+w41t9HcD9OcNqyNkF5KiNQg2bI5D/zC9Qg50t/55 X-Received: by 2002:a17:906:6a4a:: with SMTP id n10mr7796252ejs.23.1571393710359; Fri, 18 Oct 2019 03:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571393710; cv=none; d=google.com; s=arc-20160816; b=gY3kzKdbRf+5Dbil/gBaq/1V30p9OJupD9p86P5jZKxKnuJP1V0d5kOqW3JFMqWu8l 6CduT8arqC6eplbpjHDLauhS3bGtC+gs+lss2PNzL44GcO1JGMO8C1KGFXFzVPkPenTq ovLK7hj8yhGg1jGFJW7Kr3WPuCrACzzmHqJaHLT6TsxrQGLLftDAkTg+gsxI5clUeKWI 2TnjazPnRhORCv3hArf6gDVTPzWmOvKbYuK+iZX8lrPfsLmce2wXPh0bzAH3ZlPN0vxF ZOgk7AvSrvZoDsA0DcpuDkk9AHefEKVgksUKK4Xvau/WDGWR4d2MdHXIyhKcHCOn1f/Q KtlQ== 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; bh=8CRtIM0y/VFAdhwSVeD/qzPGMPnIZ8pYpwNkxwD/7YE=; b=jQj1ahHDyJrOWl8Ouxx2o1k985uENA0fLtD/C/i7ZLUFlel8ZrDU7YMNNCNcUp8voR tskAd5AOtL73rFsi+uDngN4XI53FgvsPM9mx305TLr1In6mxHWe2ahDmoCufrrFUPz59 WqVFaXVLc3fYvWbgdumxvA8aE3rhljUTyvDTM0JuxUEqIMIhTI3/2Y1/dv58AGfm4XB9 UR9/96bU/s8NFyfGcf5qtvnUUixX9g5q61t+Pi/GVXD/0aoR2raoYYrFir4BJ1l1S0Wt lQVNRA32OR8gtSgDfnv5G7fRvivCSvQbwU5hxZ+wFJ+lVdhYkwMx/8yzeUn9QJ0m8fmT xHnQ== 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 m24si2975202ejx.286.2019.10.18.03.14.47; Fri, 18 Oct 2019 03:15:10 -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 S2438777AbfJQIME convert rfc822-to-8bit (ORCPT + 99 others); Thu, 17 Oct 2019 04:12:04 -0400 Received: from tyo162.gate.nec.co.jp ([114.179.232.162]:47381 "EHLO tyo162.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438692AbfJQIME (ORCPT ); Thu, 17 Oct 2019 04:12:04 -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 x9H8BkkZ031574 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 17 Oct 2019 17:11:46 +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 x9H8BkFX012836; Thu, 17 Oct 2019 17:11:46 +0900 Received: from mail02.kamome.nec.co.jp (mail02.kamome.nec.co.jp [10.25.43.5]) by mailsv02.nec.co.jp (8.15.1/8.15.1) with ESMTP id x9H8BEYu017939; Thu, 17 Oct 2019 17:11:46 +0900 Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.147] [10.38.151.147]) by mail01b.kamome.nec.co.jp with ESMTP id BT-MMP-9600387; Thu, 17 Oct 2019 17:07:22 +0900 Received: from BPXM23GP.gisp.nec.co.jp ([10.38.151.215]) by BPXC19GP.gisp.nec.co.jp ([10.38.151.147]) with mapi id 14.03.0439.000; Thu, 17 Oct 2019 17:07:21 +0900 From: Naoya Horiguchi To: Oscar Salvador 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 Thread-Topic: [PATCH] mm, soft-offline: convert parameter to pfn Thread-Index: AQHVhLrXcCLS8WnGfEC5psVxf+kROqdd3rQAgAADpYCAAAEegA== Date: Thu, 17 Oct 2019 08:07:21 +0000 Message-ID: <20191017080720.GB15898@hori.linux.bs1.fc.nec.co.jp> 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> <20191017080315.GA31827@linux> In-Reply-To: <20191017080315.GA31827@linux> Accept-Language: en-US, ja-JP Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.34.125.150] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: <1333D4BE3CA755459C62D6761242E0E6@gisp.nec.co.jp> 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 Thu, Oct 17, 2019 at 10:03:21AM +0200, Oscar Salvador wrote: > 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. Hi Oscar, Yes, please take it, thank you for speaking up. > > [1] https://github.com/leberus/linux/tree/hwpoison-v2