Date: Sat, 11 Sep 2010 13:06:06 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern vfs_mount.c vfs_subr.c src/sys/sys mount.h Message-ID: <201009111306.o8BD6Qxe075186@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2010-09-11 13:06:06 UTC
FreeBSD src repository
Modified files:
sys/kern vfs_mount.c vfs_subr.c
sys/sys mount.h
Log:
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009111306.o8BD6Qxe075186>
