mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 08:33:24 +00:00
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:
parent
e76bdda079
commit
643df192de
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158151
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user