From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D6F3C31E49 for ; Thu, 13 Jun 2019 15:14:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 320A920449 for ; Thu, 13 Jun 2019 15:14:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="SfHInPm3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388063AbfFMPN5 (ORCPT ); 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-Google-Smtp-Source: APXvYqxrIgS7SEgThFO4xWkROTtAeKu9gS/7k/Y8mWYSTA6O8BjyUZUk4XGZHPcLg6c7oSu9BznGCA== 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