Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp586680pxv; Thu, 22 Jul 2021 07:35:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1o/urQ2j+2D4EZVGlSAru2NgPTFcspOq/ZZjpNxBP3DTmyTNNMAW460QM7n1uVlz9c23h X-Received: by 2002:a92:7c07:: with SMTP id x7mr121965ilc.198.1626964500691; Thu, 22 Jul 2021 07:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626964500; cv=none; d=google.com; s=arc-20160816; b=dlXCLUh6baP2M923PJBKgdQUzXOH0YOyye2LVRdAhDc2+l4wwFbBAB54fqOyEij2Mx r+oCNLqWibFSgamyxaLrK3yW5+yQbPQfcCCt3950Nk2bvgYwwagNG6GDF1LBWHIMzviF G64lPvmke30pn/6ItpX3As06MUyPThxN+LZnMdLTET+mUZEvN21sE8UNDod/HWAZGP+U a3BgmLRDrsU/jdkoZWx2J21UrT07SQI8RJUS2tSiN1CYY4YdbL5OtiVkVYv8SCdRyHNa wC2kpzL4bepPghYGrDU86l8PKE00MWbqeQJzvc9portQ5Ss600c9olrLLRrKKYr61mD2 NfLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=Q6b9s+hgK3cgMIPgu7+H5W75yCavUFn9vWMzxEBJV3o=; b=nkAHvZAn4u4sKEXT9Cx6AdZSVl+hn6loxTUyoZDwp4Qm/qfhrPBpzhsPrZZl9UGMmc kpPAD3BgUd9Dr0ZtXPLmcTmrhkL5JDZSCH5u6yoNL4W5wGHVomWZOLJnpn42Jdt57JLW Bsnhp8v8qUAGHZu4Cm5tBXhZ0yKmcDunrs1rreG6kA6s8YDZguBLItrXZvX5Y5EvHaFn +TQguIbS/aubfo5AiGubSrNtGMmxW34Y7PxZ5e+7aPW2AmYhMPYkrWVB2TtgqZ33WFOg Qkul3EdN+rtef1I8teZnWI8ALtIQEexhnvTnKFHUYyPMdLJOT3Hlv8BmC05hlPCHSe9M RqpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=O4tMF3TY; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o8si28201561jap.10.2021.07.22.07.34.32; Thu, 22 Jul 2021 07:35:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=O4tMF3TY; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232257AbhGVNxu (ORCPT + 99 others); Thu, 22 Jul 2021 09:53:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230306AbhGVNxu (ORCPT ); Thu, 22 Jul 2021 09:53:50 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6D7CC061575 for ; Thu, 22 Jul 2021 07:34:25 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id BF66F6C06; Thu, 22 Jul 2021 10:34:23 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org BF66F6C06 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1626964463; bh=Q6b9s+hgK3cgMIPgu7+H5W75yCavUFn9vWMzxEBJV3o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O4tMF3TYVQBeYRnFDG0MVlTGcpneXZfkj0o0cr9QKXj2ft+1U2c8W8G+601XLNJRZ qaiji/H43pKZzs4D5cH8Iki7NGx+ME/6HfsUJe0UsFxRxdTX56e8UvdUBIEqjdvmeC /2SQP+WYvCmETJ6Yl4J719nv8F9jf73yqrBj0Y0Q= Date: Thu, 22 Jul 2021 10:34:23 -0400 From: "bfields@fieldses.org" To: Trond Myklebust Cc: "schumakeranna@gmail.com" , "linux-nfs@vger.kernel.org" , "bfields@redhat.com" , "daire@dneg.com" Subject: Re: [PATCH 3/3] nfs: don't allow reexport reclaims Message-ID: <20210722143423.GB4552@fieldses.org> References: <1623682098-13236-1-git-send-email-bfields@redhat.com> <1623682098-13236-4-git-send-email-bfields@redhat.com> <3189d061c1e862fe305e501226fcc9ebc1fe544d.camel@hammerspace.com> <20210614193409.GA16500@fieldses.org> <7b119b40fd29c424ce4e85fa4703b472bf0d379d.camel@hammerspace.com> <20210614200359.GC16500@fieldses.org> <2c776400a50afcd3e82f71f6ecb806fda1bce984.camel@hammerspace.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2c776400a50afcd3e82f71f6ecb806fda1bce984.camel@hammerspace.com> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Jun 14, 2021 at 09:03:35PM +0000, Trond Myklebust wrote: > I want to avoid the kind of issues we've be met with earlier when > mixing types just because they happened to be integer valued. > > We introduced the mixing of POSIX/Linux and NFS errors in the NFS > client back in the 1990s, and that was a mistake that we're still > paying for. For instance, the value ERR_PTR(-NFSERR_NO_GRACE) will be > happily declared as a valid pointer by the IS_ERR() test, and every so > often we find an Oops around that issue because someone used the return > value from a function that they thought was POSIX/Linux error valued, > because it usually is returning POSIX errors. I did this, by the way, but also ran across a couple more bugs in testing. At this point I've got connectathon locking tests passing on a re-export--I need to do a little more cleanup and then I'll repost. --b.