]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: just keep single lockd reference for nfsd
authorJeff Layton <jlayton@redhat.com>
Tue, 20 Jul 2010 18:10:22 +0000 (14:10 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 23 Jul 2010 12:51:26 +0000 (08:51 -0400)
commit299c7662d160d27fa50cff49642ddbd653e3ace8
tree2ebb9f5178a3b81e357f95966f1e2eb0269e8e35
parentfbc3863f6702cc1ac611e7a68bb5d03df87b5b95
nfsd: just keep single lockd reference for nfsd

Right now, nfsd keeps a lockd reference for each socket that it has
open. This is unnecessary and complicates the error handling on
startup and shutdown. Change it to just do a lockd_up when starting
the first nfsd thread just do a single lockd_down when taking down the
last nfsd thread. Because of the strange way the sv_count is handled
this requires an extra flag to tell whether the nfsd_serv holds a
reference for lockd or not.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfsctl.c
fs/nfsd/nfssvc.c