vn_start_write()/vn_finished_write() is not needed here, because

vn_start_write() is always called earlier in the code path and calling
the function recursively may lead to a deadlock.

Confirmed by:	tegge
MFC after:	2 weeks
This commit is contained in:
Pawel Jakub Dawidek 2006-04-29 21:57:38 +00:00
parent e76bdda079
commit 643df192de
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158151

View File

@ -2824,7 +2824,6 @@ vfs_msync(struct mount *mp, int flags)
struct vnode *vp, *mvp;
struct vm_object *obj;
(void) vn_start_write(NULL, &mp, V_WAIT);
MNT_ILOCK(mp);
MNT_VNODE_FOREACH(vp, mp, mvp) {
VI_LOCK(vp);
@ -2855,7 +2854,6 @@ vfs_msync(struct mount *mp, int flags)
VI_UNLOCK(vp);
}
MNT_IUNLOCK(mp);
vn_finished_write(mp);
}
/*