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: 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>
This commit is contained in:
parent
6044c0ed64
commit
7896c99acb
1 changed files with 1 additions and 0 deletions
|
@ -2468,6 +2468,7 @@ static void pool_work_wait(struct pool_work *pw, struct pool *pool,
|
||||||
init_completion(&pw->complete);
|
init_completion(&pw->complete);
|
||||||
queue_work(pool->wq, &pw->worker);
|
queue_work(pool->wq, &pw->worker);
|
||||||
wait_for_completion(&pw->complete);
|
wait_for_completion(&pw->complete);
|
||||||
|
destroy_work_on_stack(&pw->worker);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------------------------------------*/
|
/*----------------------------------------------------------------*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue