Skip to content

Commit e4dada5

Browse files
lundmanbehlendorf
andcommitted
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 openzfs#12118
1 parent 1cf3e3c commit e4dada5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

module/zfs/dmu_redact.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ perform_thread_merge(bqueue_t *q, uint32_t num_threads,
816816
avl_remove(&end_tree, &redact_nodes[i]);
817817
kmem_free(redact_nodes[i].record,
818818
sizeof (struct redact_record));
819+
bqueue_destroy(&thread_args[i].q);
819820
}
820821

821822
avl_destroy(&start_tree);
@@ -1164,6 +1165,7 @@ dmu_redact_snap(const char *snapname, nvlist_t *redactnvl,
11641165
(void) thread_create(NULL, 0, redact_merge_thread, rmta, 0, curproc,
11651166
TS_RUN, minclsyspri);
11661167
err = perform_redaction(os, new_rl, rmta);
1168+
bqueue_destroy(&rmta->q);
11671169
kmem_free(rmta, sizeof (struct redact_merge_thread_arg));
11681170

11691171
out:

0 commit comments

Comments
 (0)