diff options
author | kib <kib@FreeBSD.org> | 2010-02-28 17:09:09 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-02-28 17:09:09 +0000 |
commit | 21f579c3fb6b782ee610255d7f5bbb22e326b66c (patch) | |
tree | 4d507f7554b346fc729a579c9d68753cb334f257 /sys/fs/msdosfs/msdosfs_vnops.c | |
parent | cc5d11fa86957084473b9eebf17dcdd1f3e7633d (diff) | |
download | FreeBSD-src-21f579c3fb6b782ee610255d7f5bbb22e326b66c.zip FreeBSD-src-21f579c3fb6b782ee610255d7f5bbb22e326b66c.tar.gz |
Remove seemingly unneeded unlock/relock of the dvp in msdosfs_rmdir,
causing LOR.
Reported and tested by: pho
MFC after: 3 weeks
Diffstat (limited to 'sys/fs/msdosfs/msdosfs_vnops.c')
-rw-r--r-- | sys/fs/msdosfs/msdosfs_vnops.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c index 36e9b7f..e9c593b 100644 --- a/sys/fs/msdosfs/msdosfs_vnops.c +++ b/sys/fs/msdosfs/msdosfs_vnops.c @@ -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); } |