aboutsummaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc/pci-layerscape.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2024-08-29 09:26:40 -0400
committerChuck Lever <chuck.lever@oracle.com>2024-09-20 19:31:36 -0400
commita078a7dc0eaa9db288ae45319f7f7503968af546 (patch)
tree54537634f10ac657d748125ad7c6f3599c133a21 /drivers/pci/controller/dwc/pci-layerscape.c
parent5559c157b79907a901578f93f83eb6732bfcbc1a (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 <neilb@suse.de> Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-layerscape.c')
0 files changed, 0 insertions, 0 deletions