]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nfsd41: renew_client must be called under the state lock
authorBenny Halevy <bhalevy@panasas.com>
Thu, 20 Aug 2009 00:21:56 +0000 (03:21 +0300)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Thu, 27 Aug 2009 21:17:40 +0000 (17:17 -0400)
commitaaf84eb95a9c610c6413cee4836764ea9194eed3
tree439d25aa70e6226ae8895db8a7503fd63a62a907
parenteac81736e6884484ebb45f8d0cba639f3285382b
nfsd41: renew_client must be called under the state lock

Until we work out the state locking so we can use a spin lock to protect
the cl_lru, we need to take the state_lock to renew the client.

Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[nfsd41: Do not renew state on error]
Signed-off-by: Ricardo Labiaga <Ricardo.Labiaga@netapp.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[nfsd41: Simplify exit code]
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4state.c