Skip to content

Commit 6012169

Browse files
Yuan Canliu-song-6
authored andcommitted
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: a022325 ("md/md-bitmap: add a new helper to unplug bitmap asynchrously") Cc: stable@vger.kernel.org Signed-off-by: Yuan Can <yuancan@huawei.com> Reviewed-by: Yu Kuai <yukuai3@huawei.com> Link: https://lore.kernel.org/r/20241105130105.127336-1-yuancan@huawei.com Signed-off-by: Song Liu <song@kernel.org>
1 parent 649bfec commit 6012169

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/md/md-bitmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,6 +1285,7 @@ static void bitmap_unplug_async(struct bitmap *bitmap)
12851285

12861286
queue_work(md_bitmap_wq, &unplug_work.work);
12871287
wait_for_completion(&done);
1288+
destroy_work_on_stack(&unplug_work.work);
12881289
}
12891290

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

0 commit comments

Comments
 (0)