aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfsproc.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-07-29 21:37:44 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-07-29 23:08:38 -0400
commitb3fbfe0e7a1d88e3cbaa282c5f6fc50e8c67448c (patch)
treea250f2f7f9db1d89abcf39c70d8fe4ae9039a7c8 /fs/nfsd/nfsproc.c
parentSUNRPC: Allow svc_reserve() to notify TCP socket that space has been freed (diff)
downloadlinux-dev-b3fbfe0e7a1d88e3cbaa282c5f6fc50e8c67448c.tar.xz
linux-dev-b3fbfe0e7a1d88e3cbaa282c5f6fc50e8c67448c.zip
nfsd: print status when nfsd4_open fails to open file it just created
It's possible for nfsd to fail opening a file that it has just created. When that happens, we throw a WARN but it doesn't include any info about the error code. Print the status code to give us a bit more info. Our QA group hit some of these warnings under some very heavy stress testing. My suspicion is that they hit the file-max limit, but it's hard to know for sure. Go ahead and add a -ENFILE mapping to nfserr_serverfault to make the error more distinct (and correct). Signed-off-by: Jeff Layton <jlayton@primarydata.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfsproc.c')
-rw-r--r--fs/nfsd/nfsproc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfsproc.c b/fs/nfsd/nfsproc.c
index b19c7e8bf64c..b8680738f588 100644
--- a/fs/nfsd/nfsproc.c
+++ b/fs/nfsd/nfsproc.c
@@ -745,6 +745,7 @@ nfserrno (int errno)
{ nfserr_notsupp, -EOPNOTSUPP },
{ nfserr_toosmall, -ETOOSMALL },
{ nfserr_serverfault, -ESERVERFAULT },
+ { nfserr_serverfault, -ENFILE },
};
int i;