cvs commit: src/sys/sys mount.h src/sys/kern vfs_mount.c vfs_subr.c
Konstantin Belousov
kib at FreeBSD.org
Wed Sep 12 09:31:33 PDT 2007
kib 2007-09-12 16:31:33 UTC
FreeBSD src repository
Modified files:
sys/sys mount.h
sys/kern vfs_mount.c vfs_subr.c
Log:
When restoring the mount after umount failed, the MNTK_UNMOUNT flag
prevents insmntque() from placing reallocated syncer vnode on mount
list, that causes panic in vfs_allocate_syncvnode().
Introduce MNTK_NOINSMNTQ flag, that marks the period when instmntque is
not allowed to success, instead of MNTK_UNMOUNT. The MNTK_NOINSMNTQ is
set and cleared simultaneously with MNTK_UNMOUNT, except on umount error
path, where it is cleaned just before the syncer vnode is going to be
allocated.
Reported by: Peter Jeremy <peterjeremy optushome com au>
Suggested by: tegge
Approved by: re (rwatson)
Revision Changes Path
1.265 +9 -4 src/sys/kern/vfs_mount.c
1.707 +1 -1 src/sys/kern/vfs_subr.c
1.228 +5 -0 src/sys/sys/mount.h
More information about the cvs-src
mailing list