Remove negative name cache entry pointing to the target name, which
could be instantiated while tdvp was unlocked. Reported by: Rick Miller <vmiller at hostileadmin com> Tested by: pho MFC after: 1 week
This commit is contained in:
parent
4f67e14304
commit
0d3bb4afa8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=248422
@ -1297,6 +1297,7 @@ tmpfs_rename(struct vop_rename_args *v)
|
||||
cache_purge(fvp);
|
||||
if (tvp != NULL)
|
||||
cache_purge(tvp);
|
||||
cache_purge_negative(tdvp);
|
||||
|
||||
error = 0;
|
||||
|
||||
|
@ -1554,6 +1554,7 @@ ufs_rename(ap)
|
||||
cache_purge(fvp);
|
||||
if (tvp)
|
||||
cache_purge(tvp);
|
||||
cache_purge_negative(tdvp);
|
||||
|
||||
unlockout:
|
||||
vput(fdvp);
|
||||
|
Loading…
Reference in New Issue
Block a user