commit | da05ba23d4c8d3e8a45846b952e53dd76c4b5e36 | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@kernel.org> | Fri Aug 23 18:27:38 2024 -0400 |
committer | Chuck Lever <chuck.lever@oracle.com> | Mon Aug 26 11:52:40 2024 -0400 |
tree | d48db0f75fba72c5a21a78e0250048a3e8d744cc | |
parent | f25d1b5f1be13a6de341b1d26e0cf4275e5908d2 [diff] |
nfsd: hold reference to delegation when updating it for cb_getattr 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: c5967721e106 ("NFSD: handle GETATTR conflict with write delegation") Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>