kib 2010-09-11 13:06:06 UTC
FreeBSD src repository
sys/kern vfs_mount.c vfs_subr.c
SVN rev 212466 on 2010-09-11 13:06:06Z by kib
Protect mnt_syncer with the sync_mtx. This prevents a (rare) vnode leak
when mount and update are executed in parallel.
Encapsulate syncer vnode deallocation into the helper function
vfs_deallocate_syncvnode(), to not externalize sync_mtx from vfs_subr.c.
Found and reviewed by: jh (previous version of the patch)
Tested by: pho
MFC after: 3 weeks
Revision Changes Path
1.321 +6 -11 src/sys/kern/vfs_mount.c
1.793 +27 -4 src/sys/kern/vfs_subr.c
1.253 +1 -0 src/sys/sys/mount.h