Skip to content

Commit 7024e18

Browse files
Yuan CanSasha Levin
authored andcommitted
dm thin: Add missing destroy_work_on_stack()
commit e74fa24 upstream. 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2b87004 commit 7024e18

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)