Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7020248ybi; Thu, 13 Jun 2019 08:15:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxW4Gdk96Mt3XQz9kjEf2CG4+0K3MRmGYSEI49n96LI61xV0Cs3XkaFN7l42yTdyzlTQ6Pb X-Received: by 2002:a62:6341:: with SMTP id x62mr95169394pfb.63.1560438922223; Thu, 13 Jun 2019 08:15:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438922; cv=none; d=google.com; s=arc-20160816; b=fDh+5hqhRVPnogN5GyeoYPQAahmbqcd2V6FmBxmKvstCSTJJ6FAtnMx0fqRaso+y/u FfLgY/OgbzroXG/S6mHUN/ldHNLX/lrW629g5NVJnEYqNNLBa1jqkcgoUm2sxc2Ss/P8 WkO9miIuWc5No4epGBVZi3hIURJjkQa2zayfQZTrJ7QFnahaCG9/epBK2yRVSDrL5Khy VAIXRDwplSe5jq0LqnHdpTHWzHd4rzvqZ/INt0kqX6q6AMB9pKL4G67XAV0joZjUc0me w4YS0e4uv/3g1AMESA23UrLFx7ONVOb2bVsgWds3Ne0swmKfLuaLwLTYSlqsrZXOfXRp NHzQ== 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:dkim-signature; bh=KkKhR2elMbqIQhtMNyRPKfFVISR0bn0T2g34f2r/Vr8=; b=i2OzrQ5GWyjQz6bdkWr5ONKEnkaJqNj1lxBWZT6sV833dUr5SiSLePUKBCoNhOkS9B dQLMM42vqgTUyBRDYEOi/PMX1QDEPa8ploNEJRmZ7oz3aM3OagvIiycYEePbaXMFccBK Qkr0/HymKVBmrFcsqU9mI9enGsD85p3C/+uVa4AfeOhMtN4vLDBpwIH4r1oynm85qlu5 KdoY4SNCEkDQA3UHIrIwEN0oek+BD0WXF15R04YI2/zQ5jJomfkLZQ+9bm2/Ufs+ZDic vbKDP48eYE+/qISfdG3td93tjAqkC1bUuHzeNNIyIruCmFekFV+Y3ZYz2z3+F6FVgC8I wQIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=SfHInPm3; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e67si54916pgc.11.2019.06.13.08.15.07; Thu, 13 Jun 2019 08:15:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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=@ziepe.ca header.s=google header.b=SfHInPm3; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732475AbfFMPN5 (ORCPT + 99 others); Thu, 13 Jun 2019 11:13:57 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:42921 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732368AbfFMPN4 (ORCPT ); Thu, 13 Jun 2019 11:13:56 -0400 Received: by mail-qt1-f194.google.com with SMTP id s15so22934329qtk.9 for ; Thu, 13 Jun 2019 08:13:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KkKhR2elMbqIQhtMNyRPKfFVISR0bn0T2g34f2r/Vr8=; b=SfHInPm3DzZYLPoEmUVQqUjB5LScF9DsUpJ4xj+NyGtlotEBCDOd7k0OAiLknLgpy1 UwRMpQmGSzJF0gJD/kcFMjRmesoOZkKPKtk3EWMStIXtk1BSmgVZYNk1p6EKmXc4imPv 1V1hEuNESlphnwH9Ffq42vPqvIo/88Zh85Tr1f4Tsa8YuL7Uls35977s64dpr/1WcL8J ZbYx/FYbcjhIEQbbmhQgdZInCU3g7QIDiBsNO/6qOPrD5yA2TBMRXmDe20WR5bhjdxVZ hMtmCv3lKFvdGH4OgmFjKOdFtkKSEmGywoQe1a2KSSYQTb19JMjkAlD66sOEA23ZLtm9 d4ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KkKhR2elMbqIQhtMNyRPKfFVISR0bn0T2g34f2r/Vr8=; b=SN6JaAVtDDiv6MWG/X71rABao/q+ZJAbAg67G31Lg0YkVBwsFDNJhn8kG7+naoeQOF 4nVxtiw2jEDMgxsBt1L/G9dQQmBWwQ0J7PknwwUS4tiAoRZvcg36MHfu9CClpnZwvLTS gaqVP5MGIc59lFRI2f+w0lAjI8rPo0RkgYukZN5tzF4pMVGjdMq6YMH6mrphT65Eomq/ SNSlR4vKCM2QIxzW/m4aCT+u+gYTdmnO7ITVG1DjHLZCQzBa7ysOSJI4Rim+yVlWIkyk qKC8lvMo3b2x5flzJdXtrKsCrlmINjvUB0kE5MWKRjGLx3NUiqxvB2nM7Y9ehpD3AXbN /jWg== X-Gm-Message-State: APjAAAWtdDufqUxVTPNlfkMfqPKHyIGkbNZHEOU1SOYfZg2zx1IHtXKC Xmwi57POXyYgg133O5vzjN3LCw== X-Received: by 2002:ac8:2f90:: with SMTP id l16mr60699198qta.12.1560438835818; Thu, 13 Jun 2019 08:13:55 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-55-100.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.55.100]) by smtp.gmail.com with ESMTPSA id c18sm1546907qkk.73.2019.06.13.08.13.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Jun 2019 08:13:55 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1hbRQI-0001rX-U0; Thu, 13 Jun 2019 12:13:54 -0300 Date: Thu, 13 Jun 2019 12:13:54 -0300 From: Jason Gunthorpe To: Dan Williams Cc: Ira Weiny , Jan Kara , Theodore Ts'o , Jeff Layton , Dave Chinner , Matthew Wilcox , linux-xfs , Andrew Morton , John Hubbard , =?utf-8?B?SsOpcsO0bWU=?= Glisse , linux-fsdevel , Linux Kernel Mailing List , linux-nvdimm , linux-ext4 , Linux MM Subject: Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal Message-ID: <20190613151354.GC22901@ziepe.ca> References: <20190607121729.GA14802@ziepe.ca> <20190607145213.GB14559@iweiny-DESK2.sc.intel.com> <20190612102917.GB14578@quack2.suse.cz> <20190612114721.GB3876@ziepe.ca> <20190612120907.GC14578@quack2.suse.cz> <20190612191421.GM3876@ziepe.ca> <20190612221336.GA27080@iweiny-DESK2.sc.intel.com> <20190612233324.GE14336@iweiny-DESK2.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Jun 12, 2019 at 06:14:46PM -0700, Dan Williams wrote: > > Effectively, we would need a way for an admin to close a specific file > > descriptor (or set of fds) which point to that file. AFAIK there is no way to > > do that at all, is there? > > Even if there were that gets back to my other question, does RDMA > teardown happen at close(fd), or at final fput() of the 'struct > file'? AFAIK there is no kernel side driver hook for close(fd). rdma uses a normal chardev so it's lifetime is linked to the file_ops release, which is called on last fput. So all the mmaps, all the dups, everything must go before it releases its resources. Jason