Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7095250ybi; Thu, 13 Jun 2019 09:27:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWbts7ADf4a0vuTxuxzRDUhaGnogxb0p2g4Mbk/tVzLMjMBgfDajr5+8QgvJVumTwsK3cH X-Received: by 2002:a65:5302:: with SMTP id m2mr31171948pgq.369.1560443267077; Thu, 13 Jun 2019 09:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560443267; cv=none; d=google.com; s=arc-20160816; b=o8cUIRBKv8MUvLZRcg/3Y7yf752P5zx6QdUXs76re5eLkq/StjTqJWLPp+W01oyHpO I6WolJ04mU3GeLGfm+4TyVja85qTVsdjn5/GvPQdZM2o9DCrDHRS6BvR1vVQ0zVYzN4r jKaoJfwSLzPTw3m71okLorlEaerYeAVqQMEVGVG5kSmPIwLhTZ3gb3mMaDKFTNyYTjE8 5aQ/pwH4Ph1exc6cWvKjiIKquT1knCNZU2ATZpl+dR411gTVXSfbDJts2wjKccn/9X/W qQ8w/EnMT98rfB5CTM9NnqVK99wPJAPtvmANXK39Crt5GlyVYzDNWAnVt6m6Cs1GoP4Z ZwWw== 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=wjBnZv2pCLDEwG4yb+2F3joyqEyCgCcLuoiul4+lDtg=; b=lRvuan7/IfFQCVo3jlqhR6zjJvaxr4lX/1peI2pIguuF21qGA0ooRfP1JJdm35kht+ W7vYOLxyjbDgJrmaS4jYqxmGBW49ORVsHHTr3adZ49mqglzy8ZXhULPaJncjzJLxVm4C 5T8Cam5fTv2z7iNuAe2jRFKeGn6ZyywkpXLR5xvPIbDny3yBngRduoHL6xMg81+LKjnf 5+yD0FPUVJEUXGPMG9WO4cPAtKhHzOCP5zCcCe7jxArkKLMzybs0UsWXuar4uNElKxRR XGhuZtmO6kTiXcGTwk2TZbJAcIZ0lDP7IBUG8RXFIIrCUUEqu280Uy1yY7C0rvGTXVmJ AA4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=KHbKhiCE; 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; 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 c15si68760pgm.421.2019.06.13.09.27.32; Thu, 13 Jun 2019 09:27:47 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=KHbKhiCE; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392283AbfFMQ0G (ORCPT + 99 others); Thu, 13 Jun 2019 12:26:06 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:43153 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730967AbfFMQ0G (ORCPT ); Thu, 13 Jun 2019 12:26:06 -0400 Received: by mail-oi1-f195.google.com with SMTP id w79so14882214oif.10 for ; Thu, 13 Jun 2019 09:26:05 -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=wjBnZv2pCLDEwG4yb+2F3joyqEyCgCcLuoiul4+lDtg=; b=KHbKhiCEqP27YRm90NCLuB4c2IplNhmcOcBL7/TKZlk3SiaZQfwA9S0uY/GsQv03Pr aBL2AWfi8XTIFaky9LKQqE+K/NfNYYNrlmFC/I9jOaxHcs4tAfHfjcUQbqcl3RnXxild Tu3HngJ2BWQbjHKSA518A7LMdZsRAI0y2xoRezHhz45e3uyBcpgMb0voTy98I6u2hRnp NYEu7LcFVoYX1llZ3PhX+HJY3OdLwk1vk8E00NF1S8iWedYKuEKJl7E8AOFKwK6O5TC3 f4HIkh3G/dWUfgrFHj9h1Gd+qxz3edzqRbXtlNTkaPme0fjX3JDzh/8PrIf6qw6dZLSg gtaQ== 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=wjBnZv2pCLDEwG4yb+2F3joyqEyCgCcLuoiul4+lDtg=; b=gn+wKKnyh5L6U6IFUZN6K3OLacZyBlsUTP32uGZDFr/vJYoSiFywiq5YfxB9saSIzI 4m80KqyygnAbObASAEH57M3t6uSvPkf/+SJN6ZwnGXnNx8EqkS7aELTiXftky1yt7XqV 1OuiNCwBNWf4Y1YynyqwgjrKyR1PU2EMZv+PAZ8K0oPARJ6yHr6Hnm6MO84pSHtA8DZD i2R3jqtikXwDTkdh091PflE1gXjb5K7/jfQ4OenatZAabxbanwwpE7iowUtG0lg7Hz+W wca2DlewyDU8KZNKoShlGlOsOBuhLdHZfo7D5H9WLsQvXmcOK6EKMdSUA3Q2ZMcyCHc3 FqLA== X-Gm-Message-State: APjAAAVINZ8zWp5+clLLFwyPK3jbNaT4pArzX5oJuU60gamVqKs2HUww 36Bi+flFeCMkrh8SEI/UkOfkblP+heSB46zHLgFFAg== X-Received: by 2002:aca:7c5:: with SMTP id 188mr3423005oih.70.1560443165189; Thu, 13 Jun 2019 09:26:05 -0700 (PDT) MIME-Version: 1.0 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> <20190613151354.GC22901@ziepe.ca> In-Reply-To: <20190613151354.GC22901@ziepe.ca> From: Dan Williams Date: Thu, 13 Jun 2019 09:25:54 -0700 Message-ID: Subject: Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal To: Jason Gunthorpe Cc: Ira Weiny , Jan Kara , "Theodore Ts'o" , Jeff Layton , Dave Chinner , Matthew Wilcox , linux-xfs , Andrew Morton , John Hubbard , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , linux-fsdevel , Linux Kernel Mailing List , linux-nvdimm , linux-ext4 , Linux MM Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Jun 13, 2019 at 8:14 AM Jason Gunthorpe wrote: > > 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. Oh, I must have missed where this conversation started talking about the driver-device fd. I thought we were talking about the close / release of the target file that is MAP_SHARED for the memory registration. A release of the driver fd is orthogonal to coordinating / signalling actions relative to the leased file.