Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4642378ybe; Mon, 16 Sep 2019 16:07:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqpD9z1RuizP1mtkQ8T985Wj6USeNDPgOv1hZWm7d0fHFOp4ar+MU8Wx4s32VS/5Q7nYSS X-Received: by 2002:a50:a939:: with SMTP id l54mr1765658edc.214.1568675251871; Mon, 16 Sep 2019 16:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568675251; cv=none; d=google.com; s=arc-20160816; b=bk9XMyjH5OkQTUBMFOvrbjMG/Mlc+o0DbtOWF+6+bT+y+DFkBy30SJv+/urEBJ/QmG eaiYtP7GEdkzDENetNzNnEQ9o6oCdPWanFQzKf8QM2ITaUIMnwhtQ+fzpQGEum2a2lgP hep5tjdwxKZOkmzbvJ38jkwZeiN5Ahr084sCy7E/K4Ik19XmJSGoDwYdf/TcE7G+bDqo Vnt4hJDqoLbJrD1lqNe4N13bpneWQyukZAqwMd2XY10lol1ex9w+641J3JiaX/rLJGsJ DM5hwg47QAOETQvz/1Rt7NuODfvvv1mXlWAIAM4bC/xYAf4vu6xyiNpE5FWvR3PpH45I 2T5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=H0ZsSGTSv+cL7Oj6JGDCmKbMzERwb43OxPJbmdmv35w=; b=hk9XBkNdvQJvFUmh6neM6aH/4MUmBQOVq1shGWfEhzRaWbHdHy1BdkQsYP5OIjPX/6 9H5k2wyG4kpAInUaB6vZpozeHDPej8uzHXlm1tV1wxWTw0qgJ5qjxXQFbr9YWRHvFBpL 7WcZAVC8SDqoJaqWEwM5R94Ras3YXWrE0T4UUFhVpEO2WjFLTRe0v+fA1GygOLHcnmsa WGNFmru10186BYIiEbUm8G3OxFWF9kvTkYV+Bx5i4akSLiVR35SHA8QDQgSp5hD8MrMA s8bGaaeeqjjpYVZG5NpdfZ/21FlKD05NrmdMRBm+heHVEctPMTDQXcHLNrA4q+3B51Rg Atag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@delphix.com header.s=google header.b=eKql6OrY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=delphix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12si316427edb.262.2019.09.16.16.05.37; Mon, 16 Sep 2019 16:07:31 -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; dkim=pass header.i=@delphix.com header.s=google header.b=eKql6OrY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=delphix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387419AbfIPW3D (ORCPT + 99 others); Mon, 16 Sep 2019 18:29:03 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:36586 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728049AbfIPW3D (ORCPT ); Mon, 16 Sep 2019 18:29:03 -0400 Received: by mail-io1-f66.google.com with SMTP id b136so2919218iof.3 for ; Mon, 16 Sep 2019 15:29:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=delphix.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=H0ZsSGTSv+cL7Oj6JGDCmKbMzERwb43OxPJbmdmv35w=; b=eKql6OrYBZhI75WY3ioLSz5CP+VrQPQFvyCjHYWznrMHqyoBAkSpdSYRiOCY9JV0tg 0Q87iooqiRlmejo5h12KuF+pAbGZ1cVmE+T0Kw97L5P8bkQVVOSU3SCFmFtmsutNK/Os Pkt3riTHzAp6/PfMB0VsFyQFkvdgOwGX2w3A8= 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; bh=H0ZsSGTSv+cL7Oj6JGDCmKbMzERwb43OxPJbmdmv35w=; b=OZuuKORqTVb+Pjtj6jBhQUYUGrUq6NjLiPY3dSpOtfsqS0oAwcaFDXjZcsinaOwjKK M9PUsPVZa8PgtnTKGWRDr4e5XBBl63g3PsUAm5ftdDgc/CGUPr1GoGugLtM+Fqsp0pEm 0hhWUWZY4qo7Jbqe6SLIb8bU+Aa0OtoeqMC9r5WjK+0exFqlJHyw190rExgUzfDqkQxa N8+A3YNWq51NwyXeH1wfNZmN36PP2Q/beIXUJD4IrrM0G44Jr2DrysfTf2SIOtC/iyzv 8QikY1RyBz1Tcrm771lYoEM8Ekq3zXpzCljUHT6aZvUL/evuo+lcWJ/GQE6kYgQxfkxo PKbw== X-Gm-Message-State: APjAAAWkCuJABLd0WVnK5RKIsBfBT+JKeQKN3MHehFMyx3695z40b2Ug GIswfVmt6scQIokMRI5VsLkCIS+hXpDfFzrNy0LjDvs9GLk= X-Received: by 2002:a6b:400f:: with SMTP id k15mr129915ioa.153.1568672942506; Mon, 16 Sep 2019 15:29:02 -0700 (PDT) MIME-Version: 1.0 References: <1567518908-1720-1-git-send-email-alex@zadara.com> In-Reply-To: <1567518908-1720-1-git-send-email-alex@zadara.com> From: John Gallagher Date: Mon, 16 Sep 2019 15:28:26 -0700 Message-ID: Subject: Re: [RFC-PATCH] nfsd: provide a procfs entry to release stateids of a particular local filesystem To: alex@zadara.com, linux-nfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Sep 3, 2019 at 6:57 AM Alex Lyakas wrote: > This patch allows user-space to tell nfsd to release stateids of a particular local filesystem. > After that, it is possible to unmount the local filesystem. We recently ran into this exact same issue. A solution along these lines would be very useful to us as well. I am curious, though, is it feasible to release all state related to a filesystem immediately when it is unexported? It seems like that would be ideal from the perspective of the administrator of the server, but perhaps there are technical reasons why that isn't easy or even possible. -John