Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1197758ybi; Fri, 14 Jun 2019 10:14:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYnfN4pQElGmwDxLhBFEx97Rgn6666ITk6hrSi8muzeC4B6ZqTtfmgtGcPdP9i5iBXyLUq X-Received: by 2002:a62:3287:: with SMTP id y129mr43409468pfy.251.1560532478879; Fri, 14 Jun 2019 10:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560532478; cv=none; d=google.com; s=arc-20160816; b=bfa4ZKuZTZ83fTNcgREGmrjQZDmh7GpaM6z/cySyba1oxxnUcg/3bMMzb0bXYIbQNe 7/UkBS+38DIgezfV8S1xiAM8pDW7CX3ozu1apJHcAx31KSlMVBezPqSVz6hT/9y4LL9T k7RZ9ZlmV8k0JW+yLPjCEOBQ4aR8C1UMkUt217fErZ7um0jZfu7aF9cu2eUeGblvNWu4 VC3ofIe4HPjhmsIIyuwURZilqGMcXN8fsSgI7Eu6cZG857uIJ54mF+DWRk3x7pkSCgxF U9NfYhk1HQdo0duPfmjZ+1xxYggpF+0i2ihj+/cs1I6TaylOUcuQoplzZii6Yy6/4ZAT m01w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=1DOR0lfku3yUBhnRNWEqeIw9f7cV+CNTtUVXtGntF+g=; b=e+5uHSeSH0CImIS9SNClKDL2sjsPxuAL4GVPj2rhFSxL7mg1y5rknnKOAfwEagD5hX m40qHDfXSE5KyLwyaen7J0nRR+nUFZss//Yvf8RJZ/ryspCt84s57foOkj8X2ual71PQ FAbBnBqkH+yhzh4Do5PibAukWyk0Gkn3sTskkMImBJvnfNBxXuPA9jQmyOYaLUD7I36t 2FDil+RHz6YsnqSkt7p3mCJdV5JNTSoxYhDPcahiES4LHY495R0AdwPMWiMGyN6LWewS EHtaHnshHR1TD1YhhM3gLJ1b4tm0j22I/72eK4h3XDgZ6xyrh/E0cmR8ZwTrdzsoACj5 RyQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=sTwfKZMS; 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=intel.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.14.22; Fri, 14 Jun 2019 10:14:38 -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; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=sTwfKZMS; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725972AbfFNROT (ORCPT + 99 others); Fri, 14 Jun 2019 13:14:19 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:34461 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbfFNROS (ORCPT ); Fri, 14 Jun 2019 13:14:18 -0400 Received: by mail-ot1-f67.google.com with SMTP id n5so3364588otk.1 for ; Fri, 14 Jun 2019 10:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1DOR0lfku3yUBhnRNWEqeIw9f7cV+CNTtUVXtGntF+g=; b=sTwfKZMStgwHohmnokMWPy+VfqEaV8lW2lueb7v8fb896+Vc0aKVzpBH0A2lEJlw6q oALCiHx77zWRNARo52nz8z+FNUxgUwVgBG+v1ofG044GSZOat+JTG9E2WNwyxxib8AG2 gpjqossClsMvuhpes7lVdiSsvyVheT+RRZNuZS9QKm7gxXA0LXlU62z/ZeDVSIkaSKLG q2xdj1lK+22SHsQoDVfk25zVhm3/u/GXGDlHpOQpCSDX6j/uZMH4LMgtT9/w9S6/Uurk O8qQF4zoQsEqPbLE2I2goSlCiHkrB1+UDrJXIaIzjBrMd5fRfGm+SSdXADa62AeNqAyv 0hiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1DOR0lfku3yUBhnRNWEqeIw9f7cV+CNTtUVXtGntF+g=; b=bEcuKN49m6UdqvwlYrfgYNEftLbWF/dJCmRymzxOvVRNLGDc2k7mVtjAwRZ7XqGEWF uOe5mnRx0rQqPgRuWkpF11e3MBzpjWXrvVu3ITvKjeocF4hHH2AgM9/9yN/dvTfXlw74 pCsSfnUBqqP6aYVrQHzPjiQzWUkhcixZcHjWhpXW/eHwb+qBCtNvfTYMl2tt77tbX8pw SVglejE8D9wvLO+J5F8SYJtMgL+YYdjpGn8zIkc72lhDl0xiFu6DRpy8jMTOU1AEsTnD 6wP2cVjM5a7YcBfz3Rq0e7I/3iNVgvIr5Hgzoph3KrAx87ML7+Gvy/qyU7oAjewT8DgU CUMw== X-Gm-Message-State: APjAAAU01YH/GCLwm4lC4NjXuDOX/9cD5ohGdo2zDwMB/bf892CHWwnn hbpbaf7rfUcIPtjBM/xyYQqFHmD3kggBmN908aPwgg== X-Received: by 2002:a9d:7248:: with SMTP id a8mr5283755otk.363.1560532457937; Fri, 14 Jun 2019 10:14:17 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Dan Williams Date: Fri, 14 Jun 2019 10:14:06 -0700 Message-ID: Subject: Re: [PATCH -next] mm/hotplug: skip bad PFNs from pfn_to_online_page() To: Jeff Moyer Cc: "Aneesh Kumar K.V" , Oscar Salvador , Qian Cai , Andrew Morton , Linux MM , Linux Kernel Mailing List , linux-nvdimm Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 14, 2019 at 10:09 AM Jeff Moyer wrote: > > "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. Even with fsdax namespaces I don't see the concern. Yes, DAX might be disabled if the filesystem on the namespace has a block size that is smaller than the current system PAGE_SIZE, but the filesystem will still work. I.e. it's fine to put a 512 byte block size filesystem on a system that has a 4K PAGE_SIZE, you only lose DAX operations, not your data access.