]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd4: fix lockowner matching
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 7 Nov 2011 21:37:57 +0000 (16:37 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 8 Nov 2011 02:10:47 +0000 (21:10 -0500)
commitb93d87c19821ba7d3ee11557403d782e541071ad
tree982cdf816584c05131e497e3d79503e91260db8f
parentf8e6defe7f4456d8700e5a3796a1e9fb54a88543
nfsd4: fix lockowner matching

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.)

Cc: stable@kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c