Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp902094ybn; Wed, 25 Sep 2019 09:20:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuPQFlC2GkBnATnao1k3B2woJy6Az6QEmLZrw7G4qX8Sktq2/Qw6yKsXpoUO7ZWGgqPC4i X-Received: by 2002:a50:981b:: with SMTP id g27mr3881496edb.105.1569428446709; Wed, 25 Sep 2019 09:20:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569428446; cv=none; d=google.com; s=arc-20160816; b=OUD7Sn5D4vuB4py3SoqltvwX7h0CNNvf9WmvjSyZZ/zxrcqRHc//eMSa/vpJYVlbBS RgpvvfdoStlxrUR7w1g2HF3bK6bZoqip2s0J0GVmi7335TEDOZ6Sig3AY8sn8d0IpeSa NdYpICev2dFyD3Le31Wx4AbIVtDr+b5zlAgxhooHFZoGZT6mUHgwtGp4NSYkAlUH5m38 8O4TbbqTiIrLeJtX4sBwfRhXIfZPWBJcmJSiAVfESgq/6y1vau7+M7ztfKTNI7bbz+Wi JjhtZmFAKt/mlC3Gve/VXTgz/Qs0mfb8+7AB3BZyp+wQ61KNSQG/gp17G0LgEDOLM/9F ZAJw== 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=7pYRuZEoaLUOlBaGZPDSk6b8CTRPJPV8g6pfCf8O2Vc=; b=ezkHjt6rt9Etayx3XpFoPEPIxNbcrHzzPkBYw8eFGohxtBPcGYGkThgLcvQnaVzqXh iXV8bTn27sZ8vJN1QyTeBMsjkpxC6Nx+/x3UXAFJRy1zYYgmkHimWE7jwJQegf4v4+Ie BIijjsG4mIAYOMUn26ogWAoqfUrTq13u+BfjkhSNs4vKse/VCZbCv2kCIdhz1JoheX5J RNx/WaHB8431vlFVnIk5EgY42j896Y2cVdGs/56ZmfJqsHCBcRAFZV/sL7Mb0yeT6k0u IB4uwlijQVRMlYFDsBBI98s9Fjs7Rp4/XeGgN/YAY96BKsNRqGxRttGVFR0Kde4jBUKe QGDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-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 p2si3512691edx.106.2019.09.25.09.20.20; Wed, 25 Sep 2019 09:20:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728464AbfIWQZj (ORCPT + 99 others); Mon, 23 Sep 2019 12:25:39 -0400 Received: from fieldses.org ([173.255.197.46]:57730 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728457AbfIWQZj (ORCPT ); Mon, 23 Sep 2019 12:25:39 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 25B0C8BF; Mon, 23 Sep 2019 12:25:39 -0400 (EDT) Date: Mon, 23 Sep 2019 12:25:39 -0400 From: "J. Bruce Fields" To: Alex Lyakas Cc: linux-nfs@vger.kernel.org, Shyam Kaushik Subject: Re: [RFC-PATCH] nfsd: provide a procfs entry to release stateids of a particular local filesystem Message-ID: <20190923162539.GC1228@fieldses.org> References: <1567518908-1720-1-git-send-email-alex@zadara.com> <20190906161236.GF17204@fieldses.org> <20190910202533.GC26695@fieldses.org> <8F0FAB980E6F4594A8C61D927FE022E5@alyakaslap> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8F0FAB980E6F4594A8C61D927FE022E5@alyakaslap> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Sun, Sep 22, 2019 at 09:52:36AM +0300, Alex Lyakas wrote: > I do see in the code that a delegation stateid also holds an open > file on the file system. In my experiments, however, the > nfs4_client::cl_delegations list was always empty. I put an extra > print to print a warning if it's not, but did not hit this. Do you know what version of NFS the clients are using? (4.0, 4.1, 4.2?) --b. > > Thanks, > Alex. > > > > -----Original Message----- From: J. Bruce Fields > Sent: Tuesday, September 10, 2019 11:25 PM > To: Alex Lyakas > Cc: linux-nfs@vger.kernel.org ; Shyam Kaushik > Subject: Re: [RFC-PATCH] nfsd: provide a procfs entry to release > stateids of a particular local filesystem > > On Tue, Sep 10, 2019 at 10:00:24PM +0300, Alex Lyakas wrote: > >I addressed your comments, and ran the patch through checkpatch.pl. > >Patch v2 is on its way. > > Thanks for the revision! I need to spend the next week or so catching > up on some other review and then I'll get back to this. > > For now: > > >On Fri, Sep 6, 2019 at 7:12 PM J. Bruce Fields > > wrote: > >> You'll want to cover delegations as well. And probably pNFS layouts. > >> It'd be OK to do that incrementally in followup patches. > >Unfortunately, I don't have much understanding of what these are, and > >how to cover them) > > Delegations are give the client the right to cache files across opens. > I'm a little surprised your patches are working for you without handling > delegations. There may be something about your environment that's > preventing delegations from being given out. In the NFSv4.0 case they > require the server to make a tcp connection back the client, which is > easy blocked by firewalls or NAT. Might be worth testing with v4.1 or > 4.2. > > Anyway, so we probably also want to walk the client's dl_perclnt list > and look for matching files. > > --b.