mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Ensure that cached struct thread does not keep spurious td_su
reference on an UFS mount point. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
2bdd2e7e61
commit
a7ca2c6ad0
1 changed files with 2 additions and 0 deletions
|
|
@ -226,6 +226,8 @@ proc_dtor(void *mem, int size, void *arg)
|
|||
#endif
|
||||
/* Free all OSD associated to this thread. */
|
||||
osd_thread_exit(td);
|
||||
td_softdep_cleanup(td);
|
||||
MPASS(td->td_su == NULL);
|
||||
|
||||
/* Make sure all thread destructors are executed */
|
||||
EVENTHANDLER_INVOKE(thread_dtor, td);
|
||||
|
|
|
|||
Loading…
Reference in a new issue