Skip to content
Commit 4335723e authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4: fix delegation-unlink/rename race



If a file is unlinked or renamed between the time when we do the local
open and the time when we get the delegation, then we will return to the
client indicating that it holds a delegation even though the file no
longer exists under the name it was open under.

But a client performing an open-by-name, when it is returned a
delegation, must be able to assume that the file is still linked at the
name it was opened under.

So, hold the parent i_mutex for longer to prevent concurrent renames or
unlinks.

Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent c0e6bee4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment