Files
linux/fs/nfs
Sergey Vlasov dd143426ea NFS: Fix fcntl F_GETLK not reporting some conflicts
commit 21ac19d484 upstream.

The commit 129a84de23 (locks: fix F_GETLK
regression (failure to find conflicts)) fixed the posix_test_lock()
function by itself, however, its usage in NFS changed by the commit
9d6a8c5c21 (locks: give posix_test_lock
same interface as ->lock) remained broken - subsequent NFS-specific
locking code received F_UNLCK instead of the user-specified lock type.
To fix the problem, fl->fl_type needs to be saved before the
posix_test_lock() call and restored if no local conflicts were reported.

Reference: https://bugzilla.kernel.org/show_bug.cgi?id=23892
Tested-by: Alexander Morozov <amorozov@etersoft.ru>
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-01-07 14:43:04 -08:00
..
2009-07-12 12:22:34 -07:00
2009-07-08 09:31:56 -07:00
2009-06-16 19:47:48 -07:00
2011-01-07 14:43:04 -08:00
2009-09-23 18:13:10 -07:00
2009-09-23 18:13:10 -07:00
2010-04-26 07:41:25 -07:00
2010-08-10 10:20:35 -07:00
2009-09-23 18:13:10 -07:00
2009-08-12 08:21:39 -07:00
2007-03-16 19:25:05 -07:00