auth/factotum: bound the number of srv processes to 16, error the 9p rpc when it is over limit

This commit is contained in:
cinap_lenrek 2016-10-23 17:18:35 +02:00
parent b728f50a79
commit f3feafc476

View file

@ -491,6 +491,10 @@ fsrpcio(Req *r)
fss = r->fid->aux;
srv = r->srv;
if(srv->sref.ref == 1 && srv->rref.ref > 16){
respond(r, "too much activity");
return;
}
srvrelease(srv);
qlock(fss);
if(r->ifcall.type == Tread)