Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nfsd: hold reference to delegation when updating it for cb_getattr
[ Upstream commit da05ba2 ] Once we've dropped the flc_lock, there is nothing that ensures that the delegation that was found will still be around later. Take a reference to it while holding the lock and then drop it when we've finished with the delegation. Fixes: c596772 ("NFSD: handle GETATTR conflict with write delegation") Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information