aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2006-10-04 05:15:44 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-04 10:55:15 -0400
commitcda9e0cd8a6b30ccc32edced066c378fbd87003d (patch)
treea91bd1c12b1ddf355142f5a31c0caf487e0dffc8 /fs
parent37a034729ae611295bbb8e925333d4d54d7c1ebc (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>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfsd/nfsctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index 83997282fc1a..f85472dda463 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -532,7 +532,9 @@ static ssize_t write_ports(struct file *file, char *buf, size_t size)
532 /* Decrease the count, but don't shutdown the 532 /* Decrease the count, but don't shutdown the
533 * the service 533 * the service
534 */ 534 */
535 lock_kernel();
535 nfsd_serv->sv_nrthreads--; 536 nfsd_serv->sv_nrthreads--;
537 unlock_kernel();
536 } 538 }
537 return err; 539 return err;
538 } 540 }