Skip to content

Commit 1e1e771

Browse files
Yuan Cantamaralyne
authored andcommitted
dm thin: Add missing destroy_work_on_stack()
commit e74fa2447bf9ed03d085b6d91f0256cc1b53f1a8 upstream. 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") Cc: [email protected] Signed-off-by: Yuan Can <[email protected]> Signed-off-by: Mikulas Patocka <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ee2d72d commit 1e1e771

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
@@ -2457,6 +2457,7 @@ static void pool_work_wait(struct pool_work *pw, struct pool *pool,
24572457
init_completion(&pw->complete);
24582458
queue_work(pool->wq, &pw->worker);
24592459
wait_for_completion(&pw->complete);
2460+
destroy_work_on_stack(&pw->worker);
24602461
}
24612462

24622463
/*----------------------------------------------------------------*/

0 commit comments

Comments
 (0)