knfsd: Replace lock_kernel with a mutex for nfsd thread startup/shutdown locking.
commitbedbdd8bada194a690d2901801bf8451965086b3
authorNeil Brown <neilb@suse.de>
Tue, 10 Jun 2008 12:40:35 +0000 (10 08:40 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 23 Jun 2008 17:02:49 +0000 (23 13:02 -0400)
treedc7ea15dd52370429bd63cd6803d6402cebbd50b
parent0d169ca136357d51a65d686f3c84866a8ba20ae9
knfsd: Replace lock_kernel with a mutex for nfsd thread startup/shutdown locking.

This removes the BKL from the RPC service creation codepath. The BKL
really isn't adequate for this job since some of this info needs
protection across sleeps.

Also, add some comments to try and clarify how the locking should work
and to make it clear that the BKL isn't necessary as long as there is
adequate locking between tasks when touching the svc_serv fields.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfsctl.c
fs/nfsd/nfssvc.c
include/linux/nfsd/nfsd.h
net/sunrpc/svc.c