Commit e74fa244 authored by Yuan Can's avatar Yuan Can Committed by Mikulas Patocka
Browse files

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: e7a3e871 ("dm thin: cleanup noflush_work to use a proper completion")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
parent d5f01ace
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
}

/*----------------------------------------------------------------*/