Skip to contentSkip to conversation

dm thin: Add missing destroy_work_on_stack()

PATCH New Yuan Can 1 participant 1 message Nov 6, 2024 Device mapper

lore
Share & tools
lore

Yuan Can

author
#0 lore raw

PATCH 1/1 dm thin: Add missing destroy_work_on_stack()

This commit add missed destroy_work_on_stack() operations for pw->worker in pool_work_wait().

Fixes e7a3e871d895 ("dm thin: cleanup noflush_work to use a proper completion")
---
 drivers/md/dm-thin.c | 1 +
 1 file changed, 1 insertion(+)
drivers/md/dm-thin.c +1 -0
index 89632ce97760..c9f47d0cccf9 100644
@@ -2484,6 +2484,7 @@ static void pool_work_wait(struct pool_work *pw, struct pool *pool,
 	init_completion(&pw->complete);
 	queue_work(pool->wq, &pw->worker);
 	wait_for_completion(&pw->complete);
+	destroy_work_on_stack(&pw->worker);
 }
 
 /*----------------------------------------------------------------*/
Signature · 1 line
2.17.1