Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp6062400ybl; Tue, 27 Aug 2019 13:52:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+JFjCvhermoDdXflW4YIPb/xmxnLHH1IM60/2zgDUiXdFIR0mNB9SjQhFLAMI3jRn2eGW X-Received: by 2002:a17:902:2b87:: with SMTP id l7mr786561plb.165.1566939160815; Tue, 27 Aug 2019 13:52:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566939160; cv=none; d=google.com; s=arc-20160816; b=aS2jyQb5y0SzD2UnRb83Xodd0O7ibQpvQQtguzRAzMAsZKnF5pUJl1EHImKyx1ziQU PUmbe7NfdInD73Mq6NJgVmrv0OLaPMr+PfomM2kOOtNksSjI/fSpnwKxFwmcCCbzj+C3 sEL1aW+v1h3be5CYhjPylLJgM991ZDGTOQLh5rtzR3S1blbRelunCuz/6gqViZLt7bT/ ZlpOX2+0cewaxfhhg058lyO/6iScfaXzIEoJ+6HYurvQgqwX2/zq0lCjerQPZz74PIMw Y6eWZjFSfY3z8GPtpP/zPLOc8C5pTqEFP8mYdhur6kgxcMW9acGHcrAFzMF1RrnSigta BwIg== 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=hgzYN3dkd4cSKh4GPcvDpdCNSSjYrCtDmTVEID7aYcw=; b=EWsIaoaBj1osowsd/ePFE3f+mTNHCg9mhizEWnys7aCubvclG1asWiB/SZxakvt4Z2 JQvyNMY20Lv7sn3HnposPHGkQ40KE/xYkcPPYLMbMmHZqw/2Wy7idGmGIPKW34w/43gn 1Yf56Si6eu/pAbJQy33xiIIjcYV3WkrfL/mSzWD+5BN+AyMqnokwQ6jbDeAYxu9MN5DX 6NLgpwpy/HA8lB56aEPxGv56Gsb7BWNFxQjCzrCIT/WtX5oLphV/FeV+PwRDHQw3diRd IawPJt5dAJWS1R7nQw90wffGinLtDOZh6FdAWp6hgqAW/D/IHpJQ00EhgEnHXhGc5SDv rY2A== 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 g13si389784pgo.274.2019.08.27.13.52.15; Tue, 27 Aug 2019 13:52:40 -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 S1728371AbfH0Uv6 (ORCPT + 99 others); Tue, 27 Aug 2019 16:51:58 -0400 Received: from fieldses.org ([173.255.197.46]:48176 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726584AbfH0Uv6 (ORCPT ); Tue, 27 Aug 2019 16:51:58 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 60EA01C84; Tue, 27 Aug 2019 16:51:58 -0400 (EDT) Date: Tue, 27 Aug 2019 16:51:58 -0400 From: "J. Bruce Fields" To: Alex Lyakas Cc: chuck.lever@oracle.com, linux-nfs@vger.kernel.org, Shyam Kaushik Subject: Re: [RFC-PATCH] nfsd: when unhashing openowners, increment openowner's refcount Message-ID: <20190827205158.GB13198@fieldses.org> References: <1566406146-7887-1-git-send-email-alex@zadara.com> <20190826133951.GC22759@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Tue, Aug 27, 2019 at 12:05:28PM +0300, Alex Lyakas wrote: > Is the described issue familiar to you? Yep, got it, but I haven't seen anyone try to solve it using the fault injection code, that's interesting! There's also fs/nfsd/unlock_filesystem. It only unlocks NLM (NFSv3) locks. But it'd probably be reasonable to teach it to get NFSv4 state too (locks, opens, delegations, and layouts). But my feeling's always been that the cleanest way to do it is to create two containers with separate net namespaces and run nfsd in both of them. You can start and stop the servers in the different containers independently. > It is very easily reproducible. What is the way to solve it? To our > understanding, if we un-export a FS from nfsd, we should be able to > unmount it. Unexporting has never removed locks or opens or other state, for what it's worth. --b.