nfsd4: lockt, release_lockowner should renew clients
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 3 Dec 2012 22:24:41 +0000 (17:24 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 4 Dec 2012 12:51:12 +0000 (07:51 -0500)
commit9b2ef62b1541f176ea1b1f6e13b16df14bb16e99
tree29ffd5f501ba69dee44679e78b8e3dbd1cde91cc
parent836fbadb96a8308e6283eee5c7b3bdae818b58ca
nfsd4: lockt, release_lockowner should renew clients

Fix nfsd4_lockt and release_lockowner to lookup the referenced client,
so that it can renew it, or correctly return "expired", as appropriate.

Also share some code while we're here.

Reported-by: Frank Filz <ffilzlnx@us.ibm.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c