]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a "v_seqc_users == 0 not met" panic when VFS_STATFS() fails during mount.
authorrmacklem <rmacklem@FreeBSD.org>
Wed, 26 Aug 2020 21:49:43 +0000 (21:49 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Wed, 26 Aug 2020 21:49:43 +0000 (21:49 +0000)
commit14e4cdd5d8f12dda76db9d2bded0f309aa53da19
treede4a6a23ca81d1a482cc61cdb8a3a512f264aafb
parentdc4a79386bdde0a7081c5a593a7d4cce432bd90c
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