Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp607263ybl; Tue, 7 Jan 2020 11:47:49 -0800 (PST) X-Google-Smtp-Source: APXvYqyXc3L3Na+8ibUoFEe4IYf7oqi3OOsmP6JXzzX8MqCLGIhqeIALBKU8panAhhBNXhMprzfw X-Received: by 2002:aca:815:: with SMTP id 21mr82071oii.52.1578426469825; Tue, 07 Jan 2020 11:47:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578426469; cv=none; d=google.com; s=arc-20160816; b=hxpi1edPh0gM+ZF5HhFO/SvjfbZZ52jsokZ/m5ytU0w7BDm6gbLVSjWbDeGkKAiayd Bk52LOaaJsyfkA77NS6+kEJDmGbdEVzIe6B+ZaZ2RMYHsC5jb0AxMLS9SUJ2iXQu1d/u PpQk5OR7XTcKQG+Mth65exFbWlSMzu1w9BgqDf8X/lprvNqQmQo5nqu0zoSTiVtf8kgq e1PTHLYFrwhnntVigd301cC0yoo25KhF+ijDdbU3wdAgUeqHaFYcQjGlryInepuX3qlv 2YusGXlhWw2tjJ4gApbCUg8AZGyIvxYd4S342F7QWBRYQKDjG6+Y8WN6Ry/W4pPcMqni vvbQ== 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=oMeNYRjmE3xADDHseE8To74pLJCIPrrI6iJEnl8/MJE=; b=Rs+CqJMeZZBia4BwgmZPnKrtBC8ixxPkzVYYRzn8ZCUGTN+7VBuZJ2CRX1J1u5WD5Z 9jrlDXaU9nDGyTwkjktDkt3lzMytrSOqdZFYmXbHBPJc/N4z1in9OtuJfLLj4QSt0yPg wXweAhCsv8NiK1zGpdiCOy/iZ3ZRasHHrnIJY15SYQSPUyPUzABsS8ICzM/XqqN2U7EP JDDT/f3N3wYQ7OASlr+gN6md9euSUjQu6CZXxznVzTm66c7106tvi36rZzrfAEBSITQf UfXB0mNGFZffMWhHFpIWPSwu0/eByBTb5Rgpye4AFvHpoeHNCqOGIM4Bac3+EsBpiTfr /aLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="aT9oM/LC"; 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 u188si566214oia.80.2020.01.07.11.47.37; Tue, 07 Jan 2020 11:47:49 -0800 (PST) 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="aT9oM/LC"; 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 S1728645AbgAGTqt (ORCPT + 99 others); Tue, 7 Jan 2020 14:46:49 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:33356 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728440AbgAGTqt (ORCPT ); Tue, 7 Jan 2020 14:46:49 -0500 Received: by mail-oi1-f195.google.com with SMTP id v140so558194oie.0 for ; Tue, 07 Jan 2020 11:46:48 -0800 (PST) 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=oMeNYRjmE3xADDHseE8To74pLJCIPrrI6iJEnl8/MJE=; b=aT9oM/LCSkoU4DdjNflW1gLMp0wxVh5dnFJb8sf5sPgjVDLhWEqnZiSRpAeeGcHRg3 GRzzra9Yib97QPwwnxC3RKcRXN0Osb1l24DjUOUZJ42RCQqm3m5RkDe9UzWztOZTtr3w XJLFOTDwV3oVI5CjkHlup8nJ4bFUjCoH08/1ROlE0ivkkm69CMkthrbLYK4pynoIEaCB 4b2UfkD1BJyszzW0TA68YU1tJwy/mY/yyObGN3t3ngSw0QpZlvhObmzfxajy07Khz5ST sg9FBbkL6YcKUuz5INzL2GxKWtGK7zsaP+IAywWCUcl1epohdi+uxvi6VWUJeh0J4I0J 5dyA== 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=oMeNYRjmE3xADDHseE8To74pLJCIPrrI6iJEnl8/MJE=; b=TrOKxs0L0zyQhkGHAYgkyUR2hSIl+pDrZL//pe+4B35XCdTPdezo7UoqHr7pICrLaJ /2yfzEp/MBf2J2Kx9ZAui+9B/Px6d4BNoT1gr9NaMBFUM19hDojLURVQdPGPUU0PvNDs 327Qc9Brubl/dmVlIzGg0TxiDG8Rkwvt2fkNUXjHeYaPZotpZMn6j++5xes/vEE8ZXNL udkujYU+nsKzq6bmvYc7exJymPF7TQwropNZ7no1ms2YBvajBDVBiwWfsjnvtdd6eZxf QKci7JeEYobTKtQFrDl7TeG2ohtV7wlXvGUVuDp4hNqWujNf1YAg59Ae1zyQTrhS1O9n 5/Aw== X-Gm-Message-State: APjAAAWijvWUWpliod2pPsiJukp1gGvRBz1XY5ng/bNpArTZN+32PZs0 hbSNL/1DS/x2PZHJLeQudhl99Ery0s++D+lZJiXCBg== X-Received: by 2002:aca:3f54:: with SMTP id m81mr33945oia.73.1578426408315; Tue, 07 Jan 2020 11:46:48 -0800 (PST) MIME-Version: 1.0 References: <20191216181014.GA30106@redhat.com> <20200107125159.GA15745@infradead.org> <20200107170731.GA472641@magnolia> <20200107180101.GC15920@redhat.com> <20200107183307.GD15920@redhat.com> <20200107190258.GB472665@magnolia> In-Reply-To: <20200107190258.GB472665@magnolia> From: Dan Williams Date: Tue, 7 Jan 2020 11:46:37 -0800 Message-ID: Subject: Re: [PATCH 01/19] dax: remove block device dependencies To: "Darrick J. Wong" Cc: Vivek Goyal , Christoph Hellwig , Dave Chinner , Miklos Szeredi , linux-nvdimm , Linux Kernel Mailing List , "Dr. David Alan Gilbert" , virtio-fs@redhat.com, Stefan Hajnoczi , linux-fsdevel 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 Tue, Jan 7, 2020 at 11:03 AM Darrick J. Wong wrote: [..] > > That can already happen today. If you do not properly align the > > partition then dax operations will be disabled. > > Er... is this conversation getting confused? I was talking about > kpartx's /dev/mapper/pmem0p1 being a straight replacement for the kernel > creating /dev/pmem0p1. I thnk Vivek was complaining about the > inconsistent behavior between the two, even if the partition is aligned > properly. > > I'm not sure how alignment leaked in here? Oh, whoops, I was jumping to the mismatch between host device and partition and whether we had precedent to fail to support dax on the partition when the base block device does support it. But yes, the mismatch between kpartx and native partitions is weird. That said kpartx is there to add partition support where the kernel for whatever reason fails to, or chooses not to, and dax is looking like such a place. > > This proposal just > > extends that existing failure domain to make all partitions fail to > > support dax. > > Oh, wait. You're proposing that "partitions of pmem devices don't > support DAX", not "the kernel will not create partitions for pmem > devices". > > Yeah, that would be inconsistent and weird. More weird than the current constraints? > I'd say deprecate the > kernel automounting partitions, but I guess it already does that, and Ok, now I don't know why automounting is leaking into this discussion? > removing it would break /something/. Yes, the breakage risk is anyone that was using ext4 mount failure as a dax capability detector. > I guess you could put > "/dev/pmemXpY" on the deprecation schedule. ...but why deprecate /dev/pmemXpY partitions altogether? If someone doesn't care about dax then they can do all the legacy block things. If they do care about dax then work with whole device namespaces. The proposal is to detect dax on partitions and warn people to move to kpartx. Let the core fs/dax implementation continue to shed block dependencies.