[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:
NeilBrown 2006-10-04 02:15:44 -07:00 коммит произвёл Linus Torvalds
Родитель 37a034729a
Коммит cda9e0cd8a
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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 /* Decrease the count, but don't shutdown the
* the service * the service
*/ */
lock_kernel();
nfsd_serv->sv_nrthreads--; nfsd_serv->sv_nrthreads--;
unlock_kernel();
} }
return err; return err;
} }