Commit 6012169e authored by Yuan Can's avatar Yuan Can Committed by Song Liu
Browse files

md/md-bitmap: Add missing destroy_work_on_stack()



This commit add missed destroy_work_on_stack() operations for
unplug_work.work in bitmap_unplug_async().

Fixes: a022325a ("md/md-bitmap: add a new helper to unplug bitmap asynchrously")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
Reviewed-by: default avatarYu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20241105130105.127336-1-yuancan@huawei.com


Signed-off-by: default avatarSong Liu <song@kernel.org>
parent 649bfec6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1285,6 +1285,7 @@ static void bitmap_unplug_async(struct bitmap *bitmap)

	queue_work(md_bitmap_wq, &unplug_work.work);
	wait_for_completion(&done);
	destroy_work_on_stack(&unplug_work.work);
}

static void bitmap_unplug(struct mddev *mddev, bool sync)