cvs commit: src/sys/kern vfs_mount.c vfs_subr.c src/sys/sys mount.h

[ Available lists | Index of cvs-src-old | Month of Sep 2010 | Week of 11 Sep 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Konstantin Belousov <kib@FreeBSD.org>
Date
11 Sep 2010 13:06:26
Subject
cvs commit: src/sys/kern vfs_mount.c vfs_subr.c src/sys/sys mount.h
Message-ID
201009111306.o8BD6Qxe075186@repoman.freebsd.org


[ Hide this part ]
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

Elapsed time: 0.065 seconds