From bc70c0727c709335658c2ab7980d179e736cfc1c Mon Sep 17 00:00:00 2001 From: kan Date: Sat, 1 Nov 2003 05:51:54 +0000 Subject: Temporarily undo parts of the stuct mount locking commit by jeff. It is unsafe to hold a mutex across vput/vrele calls. This will be redone when a better locking strategy is agreed upon. Discussed with: jeff --- sys/gnu/ext2fs/ext2_vfsops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/gnu/ext2fs/ext2_vfsops.c') diff --git a/sys/gnu/ext2fs/ext2_vfsops.c b/sys/gnu/ext2fs/ext2_vfsops.c index c9544c1..a9c4160 100644 --- a/sys/gnu/ext2fs/ext2_vfsops.c +++ b/sys/gnu/ext2fs/ext2_vfsops.c @@ -933,8 +933,7 @@ loop: } if ((error = VOP_FSYNC(vp, cred, waitfor, td)) != 0) allerror = error; - VOP_UNLOCK(vp, 0, td); - vrele(vp); + vput(vp); mtx_lock(&mntvnode_mtx); } mtx_unlock(&mntvnode_mtx); -- cgit v1.1