patch-2.4.19 linux-2.4.19/fs/nfsd/nfssvc.c

Next file: linux-2.4.19/fs/nfsd/vfs.c
Previous file: linux-2.4.19/fs/nfsd/nfsfh.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/fs/nfsd/nfssvc.c linux-2.4.19/fs/nfsd/nfssvc.c
@@ -66,7 +66,7 @@
 /*
  * Maximum number of nfsd processes
  */
-#define	NFSD_MAXSERVS		128
+#define	NFSD_MAXSERVS		8192
 
 int
 nfsd_svc(unsigned short port, int nrservs)
@@ -87,6 +87,7 @@
 	if (error<0)
 		goto out;
 	if (!nfsd_serv) {
+		error = -ENOMEM;
 		nfsd_serv = svc_create(&nfsd_program, NFSD_BUFSIZE, NFSSVC_XDRSIZE);
 		if (nfsd_serv == NULL)
 			goto out;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)