Do not kill vnodes after rename. This can cause deadlocks in the deadfs.

Noticed by:	Matthew N. Dodd <winter@jurai.net>
This commit is contained in:
bp 2001-03-11 11:51:42 +00:00
parent 78f47eea0f
commit 2561820ec8
2 changed files with 4 additions and 12 deletions

View File

@ -576,13 +576,9 @@ nwfs_rename(ap)
vrele(fvp);
nwfs_attr_cacheremove(fdvp);
nwfs_attr_cacheremove(tdvp);
/*
* Need to get rid of old vnodes, because netware will change
* file id on rename
*/
vgone(fvp);
nwfs_attr_cacheremove(fvp);
if (tvp)
vgone(tvp);
nwfs_attr_cacheremove(tvp);
/*
* Kludge: Map ENOENT => 0 assuming that it is a reply to a retry.
*/

View File

@ -576,13 +576,9 @@ nwfs_rename(ap)
vrele(fvp);
nwfs_attr_cacheremove(fdvp);
nwfs_attr_cacheremove(tdvp);
/*
* Need to get rid of old vnodes, because netware will change
* file id on rename
*/
vgone(fvp);
nwfs_attr_cacheremove(fvp);
if (tvp)
vgone(tvp);
nwfs_attr_cacheremove(tvp);
/*
* Kludge: Map ENOENT => 0 assuming that it is a reply to a retry.
*/