taskq: Don't leak system_delay_taskq on FreeBSD

Adds a missing taskq_destroy() call.

Reported by: Jorgen Lundman <lundman@lundman.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10292
This commit is contained in:
Ryan Moeller 2020-05-05 12:36:41 -04:00 committed by GitHub
parent 3e5d41d807
commit ddc7a2dd3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,6 +97,7 @@ static void
system_taskq_fini(void *arg) system_taskq_fini(void *arg)
{ {
taskq_destroy(system_delay_taskq);
taskq_destroy(system_taskq); taskq_destroy(system_taskq);
uma_zdestroy(taskq_zone); uma_zdestroy(taskq_zone);
tsd_destroy(&taskq_tsd); tsd_destroy(&taskq_tsd);