dm thin: Add missing destroy_work_on_stack()
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")
Signed-off-by Yuan Can <[email protected]>
--- drivers/md/dm-thin.c | 1 + 1 file changed, 1 insertion(+)
drivers/md/dm-thin.c +1 -0
@@ -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