Searched hist:"4335723 e8e9fdc6e4bb2555696bc7f1abe75f200" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/fs/nfsd/ |
H A D | nfs4proc.c | diff 4335723e8e9fdc6e4bb2555696bc7f1abe75f200 Fri Jan 24 17:04:40 CST 2014 J. Bruce Fields <bfields@redhat.com> 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: J. Bruce Fields <bfields@redhat.com>
|
H A D | vfs.c | diff 4335723e8e9fdc6e4bb2555696bc7f1abe75f200 Fri Jan 24 17:04:40 CST 2014 J. Bruce Fields <bfields@redhat.com> 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: J. Bruce Fields <bfields@redhat.com>
|