Page MenuHomeFreeBSD

D35639.diff
No OneTemporary

D35639.diff

diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -1763,6 +1763,10 @@
if (mp->mnt_vfs_ops <= 0)
panic("%s: invalid vfs_ops count %d for mp %p\n",
__func__, mp->mnt_vfs_ops, mp);
+ KASSERT(mp->mnt_vfs_ops > 1 ||
+ (mp->mnt_kern_flag & (MNTK_UNMOUNT | MNTK_SUSPEND)) == 0,
+ ("%s: vfs_ops too low (%d) for mp %p in unmount or suspend",
+ __func__, mp->mnt_vfs_ops, mp));
mp->mnt_vfs_ops--;
}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 5:30 PM (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14743679
Default Alt Text
D35639.diff (484 B)

Event Timeline