Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1365070pxb; Thu, 21 Oct 2021 22:37:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEKzZoQgleJj6zaNenG5nfGeWgQtladz1dc134usklKSvZNQ3ehpjafmn4MTy/75ah/5OY X-Received: by 2002:a17:907:3e85:: with SMTP id hs5mr3517307ejc.234.1634881032609; Thu, 21 Oct 2021 22:37:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634881032; cv=none; d=google.com; s=arc-20160816; b=mj0uRMCtLUqxtsT+IC+it/UhdcEYFEQrrMhAN9PtUz7mCwx3hersddt2YD60XXHrF/ FDmWaVNQxCJ1d/QpjHGbuNeTCs/ULgVDd8QfzhyHl3bEBmZSj+C5WpR6evR+T8f5NI4x e2WHhmu0v+2HB0V4aWgB+FwqZKO+ALVSq+uumkWDjiKSkusG9W7QTBb7669agFfqmM0S /atVyL9RQB2BxyKswZTgm7ocV+fvpepTCcp8kA4n5L9CCtaVTlftsZ1zB+7knaYiAEuM rDlLOdMGrRH5FNuaDpHM02DkaGhJgEqUQUUXW0AuiCFTaMBOVFdP/3++07n/mF+z6u+9 BexA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xcBYXoniZzY7ZLTTZ2jfTzgN29460ApB4jiwLahdOXs=; b=h3/QPMaoT1LcOl13TkyJSlZDXMTBr230eJ3Fnjy6MY1NASLj+7pLKqpKrgGiBx/JN/ DB/7Zpl21pNphLEKydwLclXbLzsrA7NOszHdkt9xKxjhl7QumWft0vlSeWYVg9Ob6kLI uyG1cntahH0zQBiIgF124kHOKJKcD35sgrhEn5kT0q9dD0cJa/wKn9sBQ1JNxLvdKeEc ywe3Sb13H92WXZHE6jpl8xl4aD3KZUIIkPTdhFeStg1hWbdZ0oeDZGUkymY1W5YG5qXe l6VM7ZFbcZuClXIsoaP4WI/iTf1GhsI/F8oSuMHn9da8WOoQAvz6TQirnRujDm/qZaiv 91MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="wi8pPE/q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si11875671edd.160.2021.10.21.22.36.33; Thu, 21 Oct 2021 22:37:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="wi8pPE/q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229925AbhJVFg0 (ORCPT + 99 others); Fri, 22 Oct 2021 01:36:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbhJVFgZ (ORCPT ); Fri, 22 Oct 2021 01:36:25 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01DA1C061764; Thu, 21 Oct 2021 22:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=xcBYXoniZzY7ZLTTZ2jfTzgN29460ApB4jiwLahdOXs=; b=wi8pPE/qofJdTPE+Mth0DB7fNI rLPT6fRiQAjOngtkmahECmF4xzDu8RZ+I/Bq734xorg82BkoG4CBsYixbbryGpWiTbMGMW53DukOP YTn3+gU8/n5KPFtd5gq+hgqf8YPpCjFqy6j+Flp4pEEuq2my4/sz0/BIdeXcDe+Z7fioDGk77K1si QlkDEAuPF2HNERwYHk7orbA89KtEJOGSzrBOzpoZh72/Pb863SQdM1QLRqbOnjHw00yWQLJywtl+N V+3W/8U+69VhnkaEcfn7BnEWN0S9AvZaE3zTOp7odX3xsFVaAhE5U0RUMtrOqpTqi2gqYoORmRq1g /XqKfgQg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdnBN-009lTo-6z; Fri, 22 Oct 2021 05:33:33 +0000 Date: Thu, 21 Oct 2021 22:33:33 -0700 From: Christoph Hellwig To: Jane Chu Cc: Christoph Hellwig , "david@fromorbit.com" , "djwong@kernel.org" , "dan.j.williams@intel.com" , "vishal.l.verma@intel.com" , "dave.jiang@intel.com" , "agk@redhat.com" , "snitzer@redhat.com" , "dm-devel@redhat.com" , "ira.weiny@intel.com" , "willy@infradead.org" , "vgoyal@redhat.com" , "linux-fsdevel@vger.kernel.org" , "nvdimm@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "linux-xfs@vger.kernel.org" Subject: Re: [PATCH 4/6] dm,dax,pmem: prepare dax_copy_to/from_iter() APIs with DAXDEV_F_RECOVERY Message-ID: References: <20211021001059.438843-1-jane.chu@oracle.com> <20211021001059.438843-5-jane.chu@oracle.com> <325baeaf-54f6-dea0-ed2b-6be5a2ec47db@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <325baeaf-54f6-dea0-ed2b-6be5a2ec47db@oracle.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 22, 2021 at 12:49:15AM +0000, Jane Chu wrote: > I've looked through your "futher decouple DAX from block devices" series > and likes the use of xarray in place of the host hash list. > Which upstream version is the series based upon? > If it's based on your development repo, I'd be happy to take a clone > and rebase my patches on yours if you provide a link. Please let me > know the best way to cooperate. It is based on linux-next from when it was posted. A git tree is here: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/dax-block-cleanup > That said, I'm unclear at what you're trying to suggest with respect > to the 'DAXDEV_F_RECOVERY' flag. The flag came from upper dax-fs > call stack to the dm target layer, and the dm targets are equipped > with handling pmem driver specific task, so it appears that the flag > would need to be passed down to the native pmem layer, right? > Am I totally missing your point? We'll need to pass it through (assuming we want to keep supporting dm, see the recent discussion with Dan). FYI, here is a sketch where I'd like to move to, but this isn't properly tested yet: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/dax-devirtualize To support something like DAXDEV_F_RECOVERYwe'd need a separate dax_operations methods. Which to me suggest it probably should be a different operation (fallocate / ioctl / etc) as Darrick did earlier.