mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
[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>
This commit is contained in:
parent
37a034729a
commit
cda9e0cd8a
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue