diff options
author | Greg Banks <gnb@melbourne.sgi.com> | 2006-10-02 05:17:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-02 10:57:19 -0400 |
commit | 9a24ab5749a31aa10ee60d9310ad72f24d7c38ab (patch) | |
tree | bae1805492889c3d59017571c062ce4a02e024aa /fs/nfsd/nfssvc.c | |
parent | 3262c816a3d7fb1eaabce633caa317887ed549ae (diff) |
[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>
Diffstat (limited to 'fs/nfsd/nfssvc.c')
-rw-r--r-- | fs/nfsd/nfssvc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index cdec3993e0d5..9773f593b3ff 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c | |||
@@ -200,7 +200,7 @@ int nfsd_create_serv(void) | |||
200 | int err = 0; | 200 | int err = 0; |
201 | lock_kernel(); | 201 | lock_kernel(); |
202 | if (nfsd_serv) { | 202 | if (nfsd_serv) { |
203 | nfsd_serv->sv_nrthreads++; | 203 | svc_get(nfsd_serv); |
204 | unlock_kernel(); | 204 | unlock_kernel(); |
205 | return 0; | 205 | return 0; |
206 | } | 206 | } |