Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1579071ybl; Thu, 5 Dec 2019 03:47:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyAwmIqh5Bj+8xW7XEVU4FyHox/+mCN2u9kbmQwa0+qD6YG5NtHNgbg4ecoCWmn+IgRwo+W X-Received: by 2002:aca:d80b:: with SMTP id p11mr6922083oig.83.1575546463093; Thu, 05 Dec 2019 03:47:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575546463; cv=none; d=google.com; s=arc-20160816; b=zCg3UEp3l9NV/uj7PuizDyDh2ZfkUDM/VQXPxPcFL8+CUCaDvFkcJR5GY1TRGu+sdE M+BuNWfvDt2SVkvLe4DypxHHN+MSRaBlBB24HsPZGzJAtONtmpxH0wvlWv5oHzWNsp9c 6QXGaMSRJ9vDwI4W7WtX8a6fY37p1wL5gkIeAYSfXa9ENtyWRucBqilsmC+iqtsvQDJu V6VzJpjwBhIXvV4HW8+3L8ljK4b9KgdQ3TA4zDs+nGvNpGYyP1ken5EPDmzKFjwjfjfo Lw2DG57ZHDcvey5BrgKoeqTB/47bxzB0kYN2lCOlut8UmX5EwxBvv1+nrbFNPuLeBP0F KesA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:importance:content-transfer-encoding :mime-version:date:subject:in-reply-to:references:cc:to:from :message-id:dkim-signature; bh=17f+avkYlvW1URy6TWVBmukX+4l49eIsdCm3AnMTr4Q=; b=M5+LnJrOaJw89lLhjkXARrXw137Ky4xwd2vzA39kaFweJs4gJfQeGLKcNafpd6i/i5 vuyO8C9GqqKNLAG+hvbtJNLc6mu8UvCYmDL70SZ4v1DsKkmbwXMdM9xMF21a0tGmUxJB ps6NG8NBcoZiJ7LQodldlF34P1iurDV/F60ObjbK9TRgISfYWbeR4C0tDJs7xRcWkKV8 tjer9twRZWVutCQw8RGPkDSOoAdrR5O538Qcjss/Z/w/Mg6+oUrjFLUSOpNSWfLpuFiQ INxbQo94le8HTkO9ZTBpAaSaNXEMJBHS04yTq6iLWxw+AvSCmrbcDCNgqAfjqtPU4XA1 qKvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zadara-com.20150623.gappssmtp.com header.s=20150623 header.b="EiNGF6/v"; 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 w11si2661736oig.45.2019.12.05.03.47.17; Thu, 05 Dec 2019 03:47:43 -0800 (PST) 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; dkim=pass header.i=@zadara-com.20150623.gappssmtp.com header.s=20150623 header.b="EiNGF6/v"; 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 S1729072AbfLELrP (ORCPT + 99 others); Thu, 5 Dec 2019 06:47:15 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53464 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729041AbfLELrP (ORCPT ); Thu, 5 Dec 2019 06:47:15 -0500 Received: by mail-wm1-f67.google.com with SMTP id n9so2845869wmd.3 for ; Thu, 05 Dec 2019 03:47:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zadara-com.20150623.gappssmtp.com; s=20150623; h=message-id:from:to:cc:references:in-reply-to:subject:date :mime-version:content-transfer-encoding:importance; bh=17f+avkYlvW1URy6TWVBmukX+4l49eIsdCm3AnMTr4Q=; b=EiNGF6/vpirF2kyGM9WGgCsCvVaVy7oSfBgjHC1dw0x+3zAH3lPGSOEv20oz2OOpGI 0DHyQWhn9Auc2EmgvRYeor7D0gQ58OinSbmVp2b9INFXef+50mpLY1x1LUTK50WBlsAD bxkdi+3wY4+Lt3j3Lrmf2HpVwJSjbP/X4Si75uxf91UMdqkxSrhP7UycC4EgDZNa+/2Z epYT3UOdMu7tYel1e+8y5iPkbNESGHbmFxGXJUAMfZRk2Es6bzrPdPMre6gFcc8eAg7F E7cdJEvDzLGGOA2c9Djq/cMhl/gU64XUSBGKDngq/GdSHCsO9hescT9ldU/Sh/at83JN Xnvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:from:to:cc:references:in-reply-to :subject:date:mime-version:content-transfer-encoding:importance; bh=17f+avkYlvW1URy6TWVBmukX+4l49eIsdCm3AnMTr4Q=; b=BLGAr9fyDMc7SQjAPbTjtC+roMsQJ3DGm/k+u9Pls33uKqxBfJHAGX7ZxbYX/lWXfq w97b9MbKQwlvjjCinlffuTx4NFvLjy66SDt8FgXvq+WrRDYCmmsDunRJJKlkyg3oSmMU 2zMKdPOOeKt7IqyYJWcIRbtyJKjAfQLBeQhcJIGf6XLOHkNyuVG0n04NYSdR/FAXdUWR 74mki9Kj2rPE/iSA37zBP57AjejRNnCnhccPvJgvdTzKJJ0blONkzwi40aSukC11eB5z qFDkzbvVyCz5gybK1oqBphVDowruPs49QS0++ylTYyhLswKHvWarKEMq8q2t9HPbzswD DAKw== X-Gm-Message-State: APjAAAVQdKH2KwGYFovOjSUuMYiN08vtw4J10fmvGdJyDYDHLMouFold 2YuONNsa0LCQmKJ4/8/Hl+tyPdKfCTE= X-Received: by 2002:a7b:cbd6:: with SMTP id n22mr4639247wmi.118.1575546432573; Thu, 05 Dec 2019 03:47:12 -0800 (PST) Received: from alyakaslap ([82.166.81.77]) by smtp.gmail.com with ESMTPSA id t5sm12085848wrr.35.2019.12.05.03.47.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Dec 2019 03:47:11 -0800 (PST) Message-ID: <1D90658865CE4379A951E464008D872E@alyakaslap> From: "Alex Lyakas" To: "J. Bruce Fields" Cc: References: <1567518908-1720-1-git-send-email-alex@zadara.com> <20190906161236.GF17204@fieldses.org> <20190910202533.GC26695@fieldses.org> In-Reply-To: <20190910202533.GC26695@fieldses.org> Subject: Re: [RFC-PATCH] nfsd: provide a procfs entry to release stateids of a particular local filesystem Date: Thu, 5 Dec 2019 13:47:09 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Bruce, Have you had a chance to review the V2 of the patch? 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.