diff options
| author | 2025-11-22 12:00:37 +1100 | |
|---|---|---|
| committer | 2026-01-26 10:10:58 -0500 | |
| commit | 96f04d24fc961a600cc9d2c4b740acf273cfcd1e (patch) | |
| tree | 44dae4e55094361ac2acf8b6b79ea688594c2a15 /security/apparmor/ssh:/git@git.zx2c4.com/git:/git.zx2c4.com | |
| parent | xdrgen: Address some checkpatch whitespace complaints (diff) | |
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 09802fd2a8ca ("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>
Diffstat (limited to 'security/apparmor/ssh:/git@git.zx2c4.com/git:/git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
