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 <patf...@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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to