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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319518
@ -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 New Issue
Block a user