commit | cda9e0cd8a6b30ccc32edced066c378fbd87003d | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Wed Oct 04 02:15:44 2006 -0700 |
committer | Linus Torvalds <torvalds@g5.osdl.org> | Wed Oct 04 07:55:15 2006 -0700 |
tree | a91bd1c12b1ddf355142f5a31c0caf487e0dffc8 | |
parent | 37a034729ae611295bbb8e925333d4d54d7c1ebc [diff] |
[PATCH] knfsd: Protect update to sn_nrthreads with lock_kernel Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 8399728..f85472d 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c
@@ -532,7 +532,9 @@ /* Decrease the count, but don't shutdown the * the service */ + lock_kernel(); nfsd_serv->sv_nrthreads--; + unlock_kernel(); } return err; }