Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1238043ybl; Wed, 21 Aug 2019 12:10:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGUGBgQwzNqBvf1cj2QPwBuLdl3YFfmn01A5AIW+J4Lhb1h0ar8MobctSpfQCbQAvJqbdj X-Received: by 2002:a63:c008:: with SMTP id h8mr31305321pgg.427.1566414611609; Wed, 21 Aug 2019 12:10:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566414611; cv=none; d=google.com; s=arc-20160816; b=c5UjxbUEtw4qNoe6DMU/fhdzEyxovrp/nU4ZaHerIn2JgsKOV+3hzNs1LWHxas7gRL rTCe091qdyhPfDJcCBV5WZoB7JlvodAB23Gu/ysoUrse00+vkugqXQkN0d0rAmIGcR90 pbPdBqWliAnmF+6CFPBvyG/E6zeX9zZ4E1B6jqWwycGl+DtZudhGtbcMFCS3W5COQKPg a2EopgoKq7+zElx6PibrKfvDt+9azTR5I/kxbQDUPI+6vLsRgc2Tm/uvX002bvnm3wZE vXdb438LzCiw4Cn4YXW6Ga+RT09cC+AZs+tOgS+4WiGvNmkxPXIqDhZz5vPvFR02BS2I xCuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=sjYzKYQizFjiEgDSAeHtnOBs1xmfn/VgCEjDvvxigYw=; b=GT8EbgGu67i5kpkhihoKhODHjZd5tcc7UtRR4yRJLlllTbJQFYO5vRNqLjuNgvCajb Jf/p1jPk9KfQ7aMJfkPWMM+63UcEYJFMD/7mZfhQx4RhKtEuR1mxjZVgH2LAs9Ly4k2f J75yeP28jC3jDTB8/yYMUGarw4fYBgWsTyWagna69TD5ui16XF4VTV0XjIw6PMQRqgRZ K2rfcc7lpXYeT3ZF4F+DnBc7AXxpkXvi1Hqz9io7vYKIjPXHBzsOOBDRBioaH26DBxiI WLj9pH7Nsf4w+6oje9YJYj4iCREWOBEZM8zOkLGjCQ1wRw4JFECWEscj7JMb27N4Tq4h 7n9A== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l40si15427340plb.205.2019.08.21.12.09.56; Wed, 21 Aug 2019 12:10:11 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729379AbfHUTJF (ORCPT + 99 others); Wed, 21 Aug 2019 15:09:05 -0400 Received: from mga17.intel.com ([192.55.52.151]:6091 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729037AbfHUTJF (ORCPT ); Wed, 21 Aug 2019 15:09:05 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Aug 2019 12:09:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,412,1559545200"; d="scan'208";a="178594638" Received: from iweiny-desk2.sc.intel.com ([10.3.52.157]) by fmsmga008.fm.intel.com with ESMTP; 21 Aug 2019 12:09:04 -0700 Date: Wed, 21 Aug 2019 12:09:04 -0700 From: Ira Weiny To: John Hubbard Cc: Dave Chinner , Jan Kara , Andrew Morton , Jason Gunthorpe , Dan Williams , Matthew Wilcox , Theodore Ts'o , Michal Hocko , linux-xfs@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-nvdimm@lists.01.org, linux-ext4@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-) Message-ID: <20190821190904.GD5965@iweiny-DESK2.sc.intel.com> References: <20190815130558.GF14313@quack2.suse.cz> <20190816190528.GB371@iweiny-DESK2.sc.intel.com> <20190817022603.GW6129@dread.disaster.area> <20190819063412.GA20455@quack2.suse.cz> <20190819092409.GM7777@dread.disaster.area> <20190820012021.GQ7777@dread.disaster.area> <84318b51-bd07-1d9b-d842-e65cac2ff484@nvidia.com> <20190820033608.GB1119@dread.disaster.area> <29c89d84-d847-0221-70a7-9e5a3d472cda@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29c89d84-d847-0221-70a7-9e5a3d472cda@nvidia.com> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 21, 2019 at 11:43:30AM -0700, John Hubbard wrote: > On 8/19/19 8:36 PM, Dave Chinner wrote: > > On Mon, Aug 19, 2019 at 08:09:33PM -0700, John Hubbard wrote: > > > On 8/19/19 6:20 PM, Dave Chinner wrote: > > > > On Mon, Aug 19, 2019 at 05:05:53PM -0700, John Hubbard wrote: > > > > > On 8/19/19 2:24 AM, Dave Chinner wrote: > > > > > > On Mon, Aug 19, 2019 at 08:34:12AM +0200, Jan Kara wrote: > > > > > > > On Sat 17-08-19 12:26:03, Dave Chinner wrote: > > > > > > > > On Fri, Aug 16, 2019 at 12:05:28PM -0700, Ira Weiny wrote: > > > > > > > > > On Thu, Aug 15, 2019 at 03:05:58PM +0200, Jan Kara wrote: > > > > > > > > > > On Wed 14-08-19 11:08:49, Ira Weiny wrote: > > > > > > > > > > > On Wed, Aug 14, 2019 at 12:17:14PM +0200, Jan Kara wrote: > > > > > ... > > AFAIA, there is no struct file here - the memory that has been pinned > > is just something mapped into the application's address space. > > > > It seems to me that the socket here is equivalent of the RDMA handle > > that that owns the hardware that pins the pages. Again, that RDMA > > handle is not aware of waht the mapping represents, hence need to > > hold a layout lease if it's a file mapping. > > > > SO from the filesystem persepctive, there's no difference between > > XDP or RDMA - if it's a FSDAX mapping then it is DMAing directly > > into the filesystem's backing store and that will require use of > > layout leases to perform safely. > > > > OK, got it! Makes perfect sense. Just to chime in here... Yea from the FS perspective it is the same. But on the driver side it is more complicated because of how the references to the pins can be shared among other processes. See the other branch of this thread https://lkml.org/lkml/2019/8/21/828 Ira > > thanks, > -- > John Hubbard > NVIDIA