Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1192227ybi; Fri, 14 Jun 2019 10:09:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzox/ffnNoXwHM7dOkAvuZ7dfayFCJthp5bKq8w7e+rRWyTcghLnGElW1I3977WWPzgci97 X-Received: by 2002:a17:90a:e397:: with SMTP id b23mr11980952pjz.140.1560532165901; Fri, 14 Jun 2019 10:09:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560532165; cv=none; d=google.com; s=arc-20160816; b=I9FfizXjHAn/tQJ86A0UEw9L/WQ3iaQj86M6D58ynYYGjfSp3QutDWtqbSjv5flIK7 PfCRL9va9pNdMz95SjOAir6doX0yyP4mdTWxZTZKZduCCCm3xIdDywS2Yia0/kl8/olK 0qmCM9ZDUSuUHJmn+d3mJ89bEwSEvp32HwZ/P/ezfqrvH5JEJxJ1wZCRw4ZwwBA6ZuZD /nlBmY/ZNslVVr9hk9PcpssRrS7gd/wUZ/4sWgR93GloKgx/shZ+C6jzLH/Uy9z+sjR9 iw+y/cqm1d/P2h3hi8kp9MDiTBmOoV5OZjGgk8qIPZxl6g9Tf8mMi2kzSKnDPQWAd+i9 SD7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=Rv1UNHV6Hq+k6RcBLpv73zo+QvQPCa12e4dH0M4WBCA=; b=XPHudA9LCn8w6abQEu4KTxrGBMJL2xIgQpnQQbSc/hPY+R3k9D0NcYwYcelG3CZ76Z o2gNlDu1OYj5LouRRXJR+/IWJD2iMsJ9u5ivytREV66iChC97uaMzCfxOdFDiVlGNKeT Lul86gX0s0psrMVJMKNVA04FevJWvZPYhbcxauliMSubCrusVmdYPz1GepXyLKN6C4Yw 1bLMowz265q4d7O3w8xRC4CTDr2GOumV1YovJkRbg8ULXNxAs9ySuTzA5awTcVlA2b6q jxMaH+i8yY0ptlQ5JTZLyp0P8CAIuQnXwLtwkHXO3zDh7+etFpAaOQZ/czEXyVC8UU2F gyFg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62si1943455pff.216.2019.06.14.10.09.11; Fri, 14 Jun 2019 10:09:25 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726318AbfFNRI5 (ORCPT + 99 others); Fri, 14 Jun 2019 13:08:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45920 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725808AbfFNRI4 (ORCPT ); Fri, 14 Jun 2019 13:08:56 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8CEA5C18B2D6; Fri, 14 Jun 2019 17:08:51 +0000 (UTC) Received: from segfault.boston.devel.redhat.com (segfault.boston.devel.redhat.com [10.19.60.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 973FC54382; Fri, 14 Jun 2019 17:08:49 +0000 (UTC) From: Jeff Moyer To: "Aneesh Kumar K.V" Cc: Dan Williams , Oscar Salvador , Qian Cai , Andrew Morton , Linux MM , Linux Kernel Mailing List , linux-nvdimm Subject: Re: [PATCH -next] mm/hotplug: skip bad PFNs from pfn_to_online_page() References: <1560366952-10660-1-git-send-email-cai@lca.pw> <1560376072.5154.6.camel@lca.pw> <87lfy4ilvj.fsf@linux.ibm.com> <20190614153535.GA9900@linux> <24fcb721-5d50-2c34-f44b-69281c8dd760@linux.ibm.com> <16108dac-a4ca-aa87-e3b0-a79aebdcfafd@linux.ibm.com> X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 Date: Fri, 14 Jun 2019 13:08:48 -0400 In-Reply-To: <16108dac-a4ca-aa87-e3b0-a79aebdcfafd@linux.ibm.com> (Aneesh Kumar K. V.'s message of "Fri, 14 Jun 2019 22:25:18 +0530") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 14 Jun 2019 17:08:56 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Aneesh Kumar K.V" writes: > On 6/14/19 10:06 PM, Dan Williams wrote: >> On Fri, Jun 14, 2019 at 9:26 AM Aneesh Kumar K.V >> wrote: > >>> Why not let the arch >>> arch decide the SUBSECTION_SHIFT and default to one subsection per >>> section if arch is not enabled to work with subsection. >> >> Because that keeps the implementation from ever reaching a point where >> a namespace might be able to be moved from one arch to another. If we >> can squash these arch differences then we can have a common tool to >> initialize namespaces outside of the kernel. The one wrinkle is >> device-dax that wants to enforce the mapping size, > > The fsdax have a much bigger issue right? The file system block size > is the same as PAGE_SIZE and we can't make it portable across archs > that support different PAGE_SIZE? File system blocks are not tied to page size. They can't be *bigger* than the page size currently, but they can be smaller. Still, I don't see that as an arugment against trying to make the namespaces work across architectures. Consider a user who only has sector mode namespaces. We'd like that to work if at all possible. -Jeff