Destroy seltd st_mtx and st_wait in seltdfini().

A correct destruction is important for WITNESS(4) and LOCK_PROFILING(9).

Submitted by:	Sebastian Huber <sebastian.huber@embedded-brains.de>
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2017-12-01 11:18:19 +00:00
parent e8502826ce
commit 36bce27be9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326429

View file

@ -1884,6 +1884,8 @@ seltdfini(struct thread *td)
if (stp->st_free2)
uma_zfree(selfd_zone, stp->st_free2);
td->td_sel = NULL;
cv_destroy(&stp->st_wait);
mtx_destroy(&stp->st_mtx);
free(stp, M_SELECT);
}