projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
044bc1d
)
NFS4.1: server gets drc mem fail should reply error at create_session
author
Mi Jinlong
<mijinlong@cn.fujitsu.com>
Thu, 11 Nov 2010 10:03:50 +0000
(18:03 +0800)
committer
J. Bruce Fields
<bfields@redhat.com>
Fri, 19 Nov 2010 23:35:12 +0000
(18:35 -0500)
When server gets drc mem fail, it should reply error to client.
Signed-off-by: Mi Jinlong <mijinlong@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/nfs4state.c
b/fs/nfsd/nfs4state.c
index 9e7f8af12f8fa6739611ec5a1c895e4942d0e52b..5d0ee0f0cb0e17870c18c62687d58ffbc4151225 100644
(file)
--- a/
fs/nfsd/nfs4state.c
+++ b/
fs/nfsd/nfs4state.c
@@
-749,6
+749,8
@@
static struct nfsd4_session *alloc_init_session(struct svc_rqst *rqstp, struct n
*/
slotsize = nfsd4_sanitize_slot_size(fchan->maxresp_cached);
numslots = nfsd4_get_drc_mem(slotsize, fchan->maxreqs);
+ if (numslots < 1)
+ return NULL;
new = alloc_session(slotsize, numslots);
if (!new) {