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: [email protected] Signed-off-by: Yuan Can <[email protected]> Reviewed-by: Yu Kuai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Song Liu <[email protected]>
1 parent 649bfec commit 6012169

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)