Linux NFS development
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Benjamin Coddington <Benjamin.Coddington@uvm.edu>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH] Don't convert NFS4ERR_RESOURCE to EREMOTEIO
Date: Wed, 4 Mar 2009 14:01:56 -0500	[thread overview]
Message-ID: <20090304190156.GA27567@fieldses.org> (raw)
In-Reply-To: <49AECB96.5010909@uvm.edu>

On Wed, Mar 04, 2009 at 01:42:30PM -0500, Benjamin Coddington wrote:
> Fixes a test in nfs4_proc_setclientid_confirm() which allows the client  
> to retry an operation when the server returns NFS4ERR_RESOURCE, instead  
> of returning EREMOTEIO to the user.

I remember being confused as to whether NFS4ERR_RESOURCE is transitory
(hence worth being retried) or permanent (in which case retrying the
identical compound won't help).  The latter might happen if, for
example, the particular sequence of compounds sent by the client was
just too long or complicated for the server to handle.

But rfc3530 doesn't explicitly limit NFS4ERR_RESOURCE to that case, and
it appears that other clients:

	http://www.nfsv4.org/nfsv4-wg-archive-feb-03-feb-05/0747.html

retry.  That discussion isn't conclusive, though.  Hm, and there's
further discussion from Mike Eisler here:

	http://www.nfsv4-editor.org/cgi-bin/roundup/nfsv4/file7/comp-res.txt

which suggests it was intended as a permanent error.

What was the specific case where you hit this?

--b.

>
> ---
> fs/nfs/nfs4xdr.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
> index d1e4c8f..61dda13 100644
> --- a/fs/nfs/nfs4xdr.c
> +++ b/fs/nfs/nfs4xdr.c
> @@ -4522,7 +4522,6 @@ static struct {
>         { NFS4ERR_SERVERFAULT,  -ESERVERFAULT   },
>         { NFS4ERR_BADTYPE,      -EBADTYPE       },
>         { NFS4ERR_LOCKED,       -EAGAIN         },
> -       { NFS4ERR_RESOURCE,     -EREMOTEIO      },
>         { NFS4ERR_SYMLINK,      -ELOOP          },
>         { NFS4ERR_OP_ILLEGAL,   -EOPNOTSUPP     },
>         { NFS4ERR_DEADLOCK,     -EDEADLK        },
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2009-03-04 19:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-04 18:42 [PATCH] Don't convert NFS4ERR_RESOURCE to EREMOTEIO Benjamin Coddington
2009-03-04 18:57 ` Trond Myklebust
2009-03-04 19:01 ` J. Bruce Fields [this message]
2009-03-04 19:25   ` Benjamin Coddington
2009-03-04 19:33     ` J. Bruce Fields
2009-03-04 19:30   ` Trond Myklebust
     [not found]     ` <1236195010.7807.26.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-03-04 19:35       ` J. Bruce Fields
2009-03-04 19:49         ` Benjamin Coddington

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090304190156.GA27567@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=Benjamin.Coddington@uvm.edu \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox