diff options
| author | 2026-04-03 11:20:55 -0400 | |
|---|---|---|
| committer | 2026-04-26 21:05:49 -0400 | |
| commit | b0bf14546bcefa4ea49f5efcd7db2a99f0cabde9 (patch) | |
| tree | b11d9a146416d41157a47065efe74b6526eac6c7 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | NFSD: Docs: clean up pnfs server timeout docs (diff) | |
nfsd: fix GET_DIR_DELEGATION when VFS leases are disabled
When leases are disabled on the server, running xfstest generic/309 leads
to an error because GET_DIR_DELEGATION returns EINVAL.
nfsd_get_dir_deleg() can fail in several ways: like memory allocation and
unable to get a lease because either leases are disable or it's already
held. Currently only the condition "already held" is translated to
returning directory-delegation-is-unavailable error. However, other failure
conditions are likely temporary and thus should result in the same kind
of error.
Fixes: 8b99f6a8c116 ("nfsd: wire up GET_DIR_DELEGATION handling")
Cc: stable@vger.kernel.org
Signed-off-by: Olga Kornievskaia <okorniev@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
