]> git.baikalelectronics.ru Git - kernel.git/commit
locks: make ->lock release private data before returning in GETLK case
authorJ. Bruce Fields <bfields@citi.umich.edu>
Thu, 22 Feb 2007 23:48:53 +0000 (18:48 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Sun, 6 May 2007 21:38:19 +0000 (17:38 -0400)
commitf9392d4be69b491e8c998b5fad07fa9f1a5f0f5e
tree3dbf00694a5fcbea48233b78697a50effdcc80c9
parent4abd8d46cea8307fb2197f82575d7ab93aa94863
locks: make ->lock release private data before returning in GETLK case

The file_lock argument to ->lock is used to return the conflicting lock
when found.  There's no reason for the filesystem to return any private
information with this conflicting lock, but nfsv4 is.

Fix nfsv4 client, and modify locks.c to stop calling fl_release_private
for it in this case.

Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Cc: "Trond Myklebust" <Trond.Myklebust@netapp.com>"
fs/locks.c
fs/nfs/nfs4proc.c