[PATCH] knfsd: add svc_get
add svc_get() for those occasions when we need to temporarily bump up svc_serv->sv_nrthreads as a pseudo refcount. Signed-off-by: Greg Banks <gnb@melbourne.sgi.com> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
3262c816a3
commit
9a24ab5749
@@ -200,7 +200,7 @@ int nfsd_create_serv(void)
|
||||
int err = 0;
|
||||
lock_kernel();
|
||||
if (nfsd_serv) {
|
||||
nfsd_serv->sv_nrthreads++;
|
||||
svc_get(nfsd_serv);
|
||||
unlock_kernel();
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user