]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a "v_seqc_users == 0 not met" panic when VFS_STATFS() fails during mount.
authorRick Macklem <rmacklem@FreeBSD.org>
Wed, 26 Aug 2020 21:49:43 +0000 (21:49 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Wed, 26 Aug 2020 21:49:43 +0000 (21:49 +0000)
commitdf665abd347e2141f54fcbcb44092f21b232fd85
treede4a6a23ca81d1a482cc61cdb8a3a512f264aafb
parent113bcc82a28fcaeec7d545c7d641a58ab19b18ec
Fix a "v_seqc_users == 0 not met" panic when VFS_STATFS() fails during mount.

r363210 introduced v_seqc_users to the vnodes.  This change requires
a vn_seqc_write_end() to match the vn_seqc_write_begin() in
vfs_cache_root_clear().
mjg@ provided this patch which seems to fix the panic.

Tested for an NFS mount where the VFS_STATFS() call will fail.

Submitted by: mjg
Reviewed by: mjg
Differential Revision: https://reviews.freebsd.org/D26160
sys/kern/vfs_mount.c