Clear the vnode knotes before destroying vpollinfo.

Reported and tested by:	Patrick Lamaiziere <patfbsd@davenulle.org>
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
This commit is contained in:
Konstantin Belousov 2013-07-17 10:56:21 +00:00
parent e4f0cdc73f
commit a8b0523ae7

View File

@ -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);