From ca5983e7d58cb372abcbd4eb46ecdd12550ff440 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 4 Oct 2006 02:15:44 -0700 Subject: [PATCH] --- yaml --- r: 38362 b: refs/heads/master c: cda9e0cd8a6b30ccc32edced066c378fbd87003d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/nfsd/nfsctl.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 4205a00ff350..e2b2ef2db170 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 37a034729ae611295bbb8e925333d4d54d7c1ebc +refs/heads/master: cda9e0cd8a6b30ccc32edced066c378fbd87003d diff --git a/trunk/fs/nfsd/nfsctl.c b/trunk/fs/nfsd/nfsctl.c index 83997282fc1a..f85472dda463 100644 --- a/trunk/fs/nfsd/nfsctl.c +++ b/trunk/fs/nfsd/nfsctl.c @@ -532,7 +532,9 @@ static ssize_t write_ports(struct file *file, char *buf, size_t size) /* Decrease the count, but don't shutdown the * the service */ + lock_kernel(); nfsd_serv->sv_nrthreads--; + unlock_kernel(); } return err; }