summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorYuan Can <yuancan@huawei.com>2024-11-06 09:03:12 +0800
committerMikulas Patocka <mpatocka@redhat.com>2024-11-20 11:38:05 +0100
commite74fa2447bf9ed03d085b6d91f0256cc1b53f1a8 (patch)
treeffcc6c53d988b391f394fd72cc73e0f04e2c61ae /drivers/md
parentd5f01ace542de62af857fa0bd405cc16f2c45bd6 (diff)
downloadlwn-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.c1
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);
}
/*----------------------------------------------------------------*/