Files
linux-cryptodev-2.6/fs/lockd
NeilBrown 96f04d24fc locks: ensure vfs_test_lock() never returns FILE_LOCK_DEFERRED
FILE_LOCK_DEFERRED can be returned when creating or removing a lock, but
not when testing for a lock.  This support was explicitly removed in
Commit 09802fd2a8 ("lockd: rip out deferred lock handling from testlock codepath")

However the test in nlmsvc_testlock() suggests that it *can* be returned,
only nlm cannot handle it.

To aid clarity, remove the test and instead put a similar test and
warning in vfs_test_lock().  If the impossible happens, convert
FILE_LOCK_DEFERRED to -EIO.

Signed-off-by: NeilBrown <neil@brown.name>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2026-01-26 10:10:58 -05:00
..
2024-09-01 10:04:56 -04:00
2025-03-10 09:10:53 -04:00
2025-03-10 09:10:53 -04:00
2025-12-24 21:18:46 -05:00
2025-12-24 21:18:46 -05:00
2021-09-17 10:35:10 -04:00