Skip to content

Commit 043f11a

Browse files
Yuan Canmehmetb0
authored andcommitted
dm thin: Add missing destroy_work_on_stack()
BugLink: https://bugs.launchpad.net/bugs/2095283 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: stable@vger.kernel.org Signed-off-by: Yuan Can <yuancan@huawei.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
1 parent 371e65d commit 043f11a

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
@@ -2468,6 +2468,7 @@ static void pool_work_wait(struct pool_work *pw, struct pool *pool,
24682468
init_completion(&pw->complete);
24692469
queue_work(pool->wq, &pw->worker);
24702470
wait_for_completion(&pw->complete);
2471+
destroy_work_on_stack(&pw->worker);
24712472
}
24722473

24732474
/*----------------------------------------------------------------*/

0 commit comments

Comments
 (0)