From: Ryusei Yamaguchi Date: Sat, 15 Aug 2009 15:54:41 +0000 (+0900) Subject: knfsd: Replace lock_kernel with a mutex in nfsd pool stats. X-Git-Tag: v2.6.32-rc1~412^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed2d8aed52212610d4cb79be3cbf535b04be38dc;p=pandora-kernel.git 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 Signed-off-by: Isaku Yamahata Signed-off-by: YOSHIFUJI Hideaki Cc: Greg Banks Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed