Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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")
Cc: stable@vger.kernel.org
Signed-off-by: Yuan Can <yuancan@huawei.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

authored by

Yuan Can and committed by
Mikulas Patocka
e74fa244 d5f01ace

+1
+1
drivers/md/dm-thin.c
··· 2484 2484 init_completion(&pw->complete); 2485 2485 queue_work(pool->wq, &pw->worker); 2486 2486 wait_for_completion(&pw->complete); 2487 + destroy_work_on_stack(&pw->worker); 2487 2488 } 2488 2489 2489 2490 /*----------------------------------------------------------------*/