diff options
author | Yuan Can <yuancan@huawei.com> | 2024-11-06 09:03:12 +0800 |
---|---|---|
committer | Mikulas Patocka <mpatocka@redhat.com> | 2024-11-20 11:38:05 +0100 |
commit | e74fa2447bf9ed03d085b6d91f0256cc1b53f1a8 (patch) | |
tree | ffcc6c53d988b391f394fd72cc73e0f04e2c61ae /drivers/md | |
parent | d5f01ace542de62af857fa0bd405cc16f2c45bd6 (diff) | |
download | lwn-e74fa2447bf9ed03d085b6d91f0256cc1b53f1a8.tar.gz lwn-e74fa2447bf9ed03d085b6d91f0256cc1b53f1a8.zip |
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>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-thin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index 89632ce97760..c9f47d0cccf9 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -2484,6 +2484,7 @@ static void pool_work_wait(struct pool_work *pw, struct pool *pool, init_completion(&pw->complete); queue_work(pool->wq, &pw->worker); wait_for_completion(&pw->complete); + destroy_work_on_stack(&pw->worker); } /*----------------------------------------------------------------*/ |