⬢ DragonFlyBSD Kernel Audit
DF-2954 / fix.diff
← back to finding ↓ download raw
--- a/sys/kern/vfs_vfsops.c	2026-06-29 12:51:19.000000000 +0000
+++ b/sys/kern/vfs_vfsops.c	2026-10-26 00:25:42.789042927 +0000
@@ -128,11 +128,12 @@
 	int flags;
 
 	VFS_MPLOCK(mp);
-	VFS_ACDONE(mp);
 	flags = mp->mnt_kern_flag;
 	error = (mp->mnt_op->vfs_unmount)(mp, mntflags);
-	if (error == 0)
+	if (error == 0) {
+		VFS_ACDONE(mp);
 		vn_syncer_thr_stop(mp);
+	}
 	VFS_MPUNLOCK();
 	return (error);
 }