diff options
author | pluknet <pluknet@FreeBSD.org> | 2012-05-10 20:28:33 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2012-05-10 20:28:33 +0000 |
commit | eb9c684005a3c1b6dded018081fd9aa9b232bb90 (patch) | |
tree | ea2548ae8e7871fdf44ce19d2530cf4f4bc8d3a8 | |
parent | 3be8548129bd377acf4e704ab461ce2d237ca68a (diff) | |
download | FreeBSD-src-eb9c684005a3c1b6dded018081fd9aa9b232bb90.zip FreeBSD-src-eb9c684005a3c1b6dded018081fd9aa9b232bb90.tar.gz |
Fix mount interlock oversights from the previous change in r234386.
Reported by: dougb
Submitted by: Mateusz Guzik <mjguzik at gmail com>
Reviewed by: Kirk McKusick
Tested by: pho
-rw-r--r-- | sys/fs/ext2fs/ext2_vfsops.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/fs/ext2fs/ext2_vfsops.c b/sys/fs/ext2fs/ext2_vfsops.c index 10ba705..e0a0d3b 100644 --- a/sys/fs/ext2fs/ext2_vfsops.c +++ b/sys/fs/ext2fs/ext2_vfsops.c @@ -830,7 +830,6 @@ ext2_sync(struct mount *mp, int waitfor) /* * Write back each (modified) inode. */ - MNT_ILOCK(mp); loop: MNT_VNODE_FOREACH_ALL(vp, mp, mvp) { if (vp->v_type == VNON) { @@ -847,7 +846,6 @@ loop: } error = vget(vp, LK_EXCLUSIVE | LK_NOWAIT | LK_INTERLOCK, td); if (error) { - MNT_ILOCK(mp); if (error == ENOENT) { MNT_VNODE_FOREACH_ALL_ABORT(mp, mvp); goto loop; |