nfsd4: fix lockowner matching
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 7 Nov 2011 21:37:57 +0000 (16:37 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 00:13:32 +0000 (16:13 -0800)
commit4c5ecfd2e16701c2e99397e017212c3ef63243f4
treefeaa7b2eb20e51ad793646503a700019580839e2
parentdd96317396ccb415ff4d540d0e69fd1d455a889f
nfsd4: fix lockowner matching

commit b93d87c19821ba7d3ee11557403d782e541071ad upstream.

Lockowners are looked up by file as well as by owner, but we were
forgetting to do a comparison on the file.  This could cause an
incorrect result from lockt.

(Note looking up the inode from the lockowner is pretty awkward here.
The data structures need fixing.)

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfsd/nfs4state.c