diff options
author | pjd <pjd@FreeBSD.org> | 2006-04-29 21:57:38 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-04-29 21:57:38 +0000 |
commit | abf5b08807b3f6a761ee0e34e92490f2cd8291c8 (patch) | |
tree | 805e4c2c88145dd63c2d3e40e65c3edc5a145f47 | |
parent | 01e1b1aa3cd6e13d2e489cc4b732cad00e894867 (diff) | |
download | FreeBSD-src-abf5b08807b3f6a761ee0e34e92490f2cd8291c8.zip FreeBSD-src-abf5b08807b3f6a761ee0e34e92490f2cd8291c8.tar.gz |
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
-rw-r--r-- | sys/kern/vfs_subr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index dbef93b..9c41fed 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -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); } /* |