nfsd: fix race in nfsd_nrthreads()
authorNeil Brown <neilb@suse.de>
Thu, 12 Jun 2008 03:38:42 +0000 (13:38 +1000)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 23 Jun 2008 17:02:50 +0000 (13:02 -0400)
commitc7d106c90ec40a0e35a6960157b40f238627246e
tree21dd79c282982c65f39a00df406dad02cadb6efc
parentabd1ec4efd82ca06127bce833ad8a4bbec8a0dcb
nfsd: fix race in nfsd_nrthreads()

We need the nfsd_mutex before accessing nfsd_serv->sv_nrthreads or we
can't even guarantee nfsd_serv will still be there.

Signed-off-by: Neil Brown <neilb@suse.de>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfssvc.c