Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103004193
D35639.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
484 B
Referenced Files
None
Subscribers
None
D35639.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D35639: vfs_op_exit(): assert that mnt_vfs_ops stays non-zero for unmount or suspend
Attached
Detach File
Event Timeline
Log In to Comment