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>
This commit is contained in:
parent
6577aac01f
commit
3e77246393
3 changed files with 9 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue