svn commit: r253417 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Wed Jul 17 10:56:22 UTC 2013
Author: kib
Date: Wed Jul 17 10:56:21 2013
New Revision: 253417
URL: http://svnweb.freebsd.org/changeset/base/253417
Log:
Clear the vnode knotes before destroying vpollinfo.
Reported and tested by: Patrick Lamaiziere <patfbsd at davenulle.org>
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Modified:
head/sys/kern/vfs_subr.c
Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c Wed Jul 17 10:53:11 2013 (r253416)
+++ head/sys/kern/vfs_subr.c Wed Jul 17 10:56:21 2013 (r253417)
@@ -3455,6 +3455,8 @@ vfs_msync(struct mount *mp, int flags)
static void
destroy_vpollinfo(struct vpollinfo *vi)
{
+
+ knlist_clear(&vi->vpi_selinfo.si_note, 1);
seldrain(&vi->vpi_selinfo);
knlist_destroy(&vi->vpi_selinfo.si_note);
mtx_destroy(&vi->vpi_lock);
More information about the svn-src-head
mailing list