knfsd: Replace lock_kernel with a mutex in nfsd pool stats.
authorRyusei Yamaguchi <mandel59@gmail.com>
Sat, 15 Aug 2009 15:54:41 +0000 (00:54 +0900)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 25 Aug 2009 16:39:37 +0000 (12:39 -0400)
commited2d8aed52212610d4cb79be3cbf535b04be38dc
tree6baac65cfa094ac79db8a473ad7bd4b1dbbc5c2a
parent55bb55dca0cecac2fb7b8c743db41361c011c8a8
knfsd: Replace lock_kernel with a mutex in nfsd pool stats.

lock_kernel() in knfsd was replaced with a mutex. The later
commit 03cf6c9f49a8fea953d38648d016e3f46e814991 ("knfsd:
add file to export stats about nfsd pools") did not follow
that change. This patch fixes the issue.

Also move the get and put of nfsd_serv to the open and close methods
(instead of start and stop methods) to allow atomic check and increment
of reference count in the open method (where we can still return an
error).

Signed-off-by: Ryusei Yamaguchi <mandel59@gmail.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Cc: Greg Banks <gnb@fmeh.org>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfsctl.c
fs/nfsd/nfssvc.c
net/sunrpc/svc_xprt.c