NFSv4: Ensure that file unlock requests don't conflict with state recovery
commit19e03c570e6099ffaf24e5628d4fe1a8acbe820d
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Dec 2008 20:21:44 +0000 (23 15:21 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Dec 2008 20:21:44 +0000 (23 15:21 -0500)
tree6e7eb831bbfe732044105f7f7a477fda5e912b6c
parent65de872ed6501a68e918a49a5c2fa7fca9c6ce21
NFSv4: Ensure that file unlock requests don't conflict with state recovery

The unlock path is currently failing to take the nfs_client->cl_sem read
lock, and hence the recovery path may see locks disappear from underneath
it.
Also ensure that it takes the nfs_inode->rwsem read lock so that it there
is no conflict with delegation recalls.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
fs/nfs/nfs4state.c