Commit 2d12a23f authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] PATCH - kNFSd in 2.5.14 - Two small changes to nfsd/nfssvc.c

1/ Return correct error code if nfs server creation fails
2/ Increase limit on number of nfsd threads

   There is no real justification for stopping a sysadmin
   from running lots and lots of nfsd threads, so we raise the
   imposed limit from 128 to 8192... maybe it should just go away...
parent 103b47f1
......@@ -67,7 +67,7 @@ struct list_head nfsd_list = LIST_HEAD_INIT(nfsd_list);
/*
* Maximum number of nfsd processes
*/
#define NFSD_MAXSERVS 128
#define NFSD_MAXSERVS 8192
int
nfsd_svc(unsigned short port, int nrservs)
......@@ -90,6 +90,7 @@ nfsd_svc(unsigned short port, int nrservs)
goto out;
if (!nfsd_serv) {
atomic_set(&nfsd_busy, 0);
error = -ENOMEM;
nfsd_serv = svc_create(&nfsd_program, NFSD_BUFSIZE, NFSSVC_XDRSIZE);
if (nfsd_serv == NULL)
goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment