summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4proc.c
diff options
context:
space:
mode:
authorJ. Bruce Fields2011-08-11 01:07:33 +0200
committerJ. Bruce Fields2011-08-27 20:21:21 +0200
commit3e77246393c0a433247631a1f0e9ec98d3d78a1c (patch)
tree34cc29296ecb2d5a74706c140fec51f03d4b578a /fs/nfsd/nfs4proc.c
parentnfsd4: fix failure to end nfsd4 grace period (diff)
downloadkernel-qcow2-linux-3e77246393c0a433247631a1f0e9ec98d3d78a1c.tar.gz
kernel-qcow2-linux-3e77246393c0a433247631a1f0e9ec98d3d78a1c.tar.xz
kernel-qcow2-linux-3e77246393c0a433247631a1f0e9ec98d3d78a1c.zip
nfsd4: stop using nfserr_resource for transitory errors
The server is returning nfserr_resource for both permanent errors and for errors (like allocation failures) that might be resolved by retrying later. Save nfserr_resource for the former and use delay/jukebox for the latter. Cc: stable@kernel.org Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r--fs/nfsd/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index b5530984db91..50bae7471147 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -940,7 +940,7 @@ _nfsd4_verify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
count = 4 + (verify->ve_attrlen >> 2);
buf = kmalloc(count << 2, GFP_KERNEL);
if (!buf)
- return nfserr_resource;
+ return nfserr_jukebox;
status = nfsd4_encode_fattr(&cstate->current_fh,
cstate->current_fh.fh_export,