Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ced6dfe9 authored by Mi Jinlong's avatar Mi Jinlong Committed by J. Bruce Fields
Browse files

NFS4.1: server gets drc mem fail should reply error at create_session



When server gets drc mem fail, it should reply error to client.

Signed-off-by: default avatarMi Jinlong <mijinlong@cn.fujitsu.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 044bc1d4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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) {