diff options
author | NeilBrown <[email protected]> | 2024-08-29 09:26:40 -0400 |
---|---|---|
committer | Chuck Lever <[email protected]> | 2024-09-20 19:31:36 -0400 |
commit | a078a7dc0eaa9db288ae45319f7f7503968af546 (patch) | |
tree | 54537634f10ac657d748125ad7c6f3599c133a21 /scripts/generate_rust_analyzer.py | |
parent | 5559c157b79907a901578f93f83eb6732bfcbc1a (diff) |
nfsd: untangle code in nfsd4_deleg_getattr_conflict()
The code in nfsd4_deleg_getattr_conflict() is convoluted and buggy.
With this patch we:
- properly handle non-nfsd leases. We must not assume flc_owner is a
delegation unless fl_lmops == &nfsd_lease_mng_ops
- move the main code out of the for loop
- have a single exit which calls nfs4_put_stid()
(and other exits which don't need to call that)
[ jlayton: refactored on top of Neil's other patch: nfsd: fix
nfsd4_deleg_getattr_conflict in presence of third party lease ]
Fixes: c5967721e106 ("NFSD: handle GETATTR conflict with write delegation")
Signed-off-by: NeilBrown <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions