aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs
diff options
context:
space:
mode:
authorJorgen Lundman <[email protected]>2021-07-20 23:08:45 +0900
committerGitHub <[email protected]>2021-07-20 08:08:45 -0600
commite04210035eba31c40978658b8d2fa7f823a9f7de (patch)
tree890c7fbed2e914b54cb53b256833fb974a65b371 /module/zfs
parent23c13c7e807ec8abb368e00699a34ffe0bd50885 (diff)
dmu_redact.c does not call bqueue_destroy
Ensure all calls to bqueue_init() has a corresponding call to bqueue_destroy() Reviewed-by: Paul Dagnelie <[email protected]> Co-authored-by: Brian Behlendorf <[email protected]> Signed-off-by: Jorgen Lundman <[email protected]> Closes #12118
Diffstat (limited to 'module/zfs')
-rw-r--r--module/zfs/dmu_redact.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/dmu_redact.c b/module/zfs/dmu_redact.c
index 62c7d01d4..fdbdf7d6e 100644
--- a/module/zfs/dmu_redact.c
+++ b/module/zfs/dmu_redact.c
@@ -816,6 +816,7 @@ perform_thread_merge(bqueue_t *q, uint32_t num_threads,
avl_remove(&end_tree, &redact_nodes[i]);
kmem_free(redact_nodes[i].record,
sizeof (struct redact_record));
+ bqueue_destroy(&thread_args[i].q);
}
avl_destroy(&start_tree);
@@ -1164,6 +1165,7 @@ dmu_redact_snap(const char *snapname, nvlist_t *redactnvl,
(void) thread_create(NULL, 0, redact_merge_thread, rmta, 0, curproc,
TS_RUN, minclsyspri);
err = perform_redaction(os, new_rl, rmta);
+ bqueue_destroy(&rmta->q);
kmem_free(rmta, sizeof (struct redact_merge_thread_arg));
out: