diff options
author | J. Bruce Fields <bfields@redhat.com> | 2011-01-01 15:43:50 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-01-04 16:49:20 -0500 |
commit | 3beb6cd1d448e7ded938bbd676493e6a08e9a6cd (patch) | |
tree | d33cdca2db5433f65cfbaa67068feebf9017cbe8 /fs/nfsd/nfsproc.c | |
parent | 65e4c8945575abca4e368e05ca3e9f77df030290 (diff) |
nfsd: don't drop requests on -ENOMEM
We never want to drop a request if we could return a JUKEBOX/DELAY error
instead; so, convert to nfserr_jukebox and let nfsd_dispatch() convert
that to a dropit error as a last resort if JUKEBOX/DELAY is unavailable
(as in the NFSv2 case).
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfsproc.c')
-rw-r--r-- | fs/nfsd/nfsproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsproc.c b/fs/nfsd/nfsproc.c index 08e17264784b..dc9c2e3fd1b8 100644 --- a/fs/nfsd/nfsproc.c +++ b/fs/nfsd/nfsproc.c | |||
@@ -736,7 +736,7 @@ nfserrno (int errno) | |||
736 | { nfserr_jukebox, -ETIMEDOUT }, | 736 | { nfserr_jukebox, -ETIMEDOUT }, |
737 | { nfserr_jukebox, -ERESTARTSYS }, | 737 | { nfserr_jukebox, -ERESTARTSYS }, |
738 | { nfserr_dropit, -EAGAIN }, | 738 | { nfserr_dropit, -EAGAIN }, |
739 | { nfserr_dropit, -ENOMEM }, | 739 | { nfserr_jukebox, -ENOMEM }, |
740 | { nfserr_badname, -ESRCH }, | 740 | { nfserr_badname, -ESRCH }, |
741 | { nfserr_io, -ETXTBSY }, | 741 | { nfserr_io, -ETXTBSY }, |
742 | { nfserr_notsupp, -EOPNOTSUPP }, | 742 | { nfserr_notsupp, -EOPNOTSUPP }, |