From f342b91c7688f2a24fe30689f7fe5fd5b2ca2bcf Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Wed, 1 Jan 2020 22:47:00 +0000 Subject: [PATCH] msdosfs: add a missing MNT_VNODE_FOREACH_ALL_ABORT to msdosfs_sync --- sys/fs/msdosfs/msdosfs_vfsops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c index e66fba9d5ee..ae050e19286 100644 --- a/sys/fs/msdosfs/msdosfs_vfsops.c +++ b/sys/fs/msdosfs/msdosfs_vfsops.c @@ -925,8 +925,10 @@ loop: } error = vget(vp, LK_EXCLUSIVE | LK_NOWAIT | LK_INTERLOCK, td); if (error) { - if (error == ENOENT) + if (error == ENOENT) { + MNT_VNODE_FOREACH_ALL_ABORT(mp, nvp); goto loop; + } continue; } error = VOP_FSYNC(vp, waitfor, td);