mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-09 01:50:35 +00:00
MFC r204467:
Remove seemingly unneeded unlock/relock of the dvp in msdosfs_rmdir, causing LOR.
This commit is contained in:
parent
1a07617f97
commit
b2c1c014b3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=205589
|
@ -1468,14 +1468,12 @@ msdosfs_rmdir(ap)
|
|||
* the name cache.
|
||||
*/
|
||||
cache_purge(dvp);
|
||||
VOP_UNLOCK(dvp, 0);
|
||||
/*
|
||||
* Truncate the directory that is being deleted.
|
||||
*/
|
||||
error = detrunc(ip, (u_long)0, IO_SYNC, cnp->cn_cred, td);
|
||||
cache_purge(vp);
|
||||
|
||||
vn_lock(dvp, LK_EXCLUSIVE | LK_RETRY);
|
||||
out:
|
||||
return (error);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue