Skip to content

Commit e74fa24

Browse files
Yuan CanMikulas Patocka
authored andcommitted
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: e7a3e87 ("dm thin: cleanup noflush_work to use a proper completion") Cc: [email protected] Signed-off-by: Yuan Can <[email protected]> Signed-off-by: Mikulas Patocka <[email protected]>
1 parent d5f01ac commit e74fa24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/md/dm-thin.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2484,6 +2484,7 @@ static void pool_work_wait(struct pool_work *pw, struct pool *pool,
24842484
init_completion(&pw->complete);
24852485
queue_work(pool->wq, &pw->worker);
24862486
wait_for_completion(&pw->complete);
2487+
destroy_work_on_stack(&pw->worker);
24872488
}
24882489

24892490
/*----------------------------------------------------------------*/

0 commit comments

Comments
 (0)