summaryrefslogtreecommitdiff
path: root/drivers/md/md-bitmap.c
diff options
context:
space:
mode:
authorYuan Can <yuancan@huawei.com>2024-11-05 21:01:05 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-09 10:40:56 +0100
commitc3d075489697145d5c795951e7b6ed40c3310342 (patch)
tree93884a81fccf49048c05412c4f2d9ef5cf332e7b /drivers/md/md-bitmap.c
parentbe19e6e4339d1579d5f2fae8ce4facf9521dbbfc (diff)
downloadlinux-c3d075489697145d5c795951e7b6ed40c3310342.tar.gz
linux-c3d075489697145d5c795951e7b6ed40c3310342.tar.bz2
linux-c3d075489697145d5c795951e7b6ed40c3310342.zip
md/md-bitmap: Add missing destroy_work_on_stack()
commit 6012169e8aae9c0eda38bbedcd7a1540a81220ae upstream. This commit add missed destroy_work_on_stack() operations for unplug_work.work in bitmap_unplug_async(). Fixes: a022325ab970 ("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/md/md-bitmap.c')
-rw-r--r--drivers/md/md-bitmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md-bitmap.c b/drivers/md/md-bitmap.c
index 29da10e6f703..c3a42dd66ce5 100644
--- a/drivers/md/md-bitmap.c
+++ b/drivers/md/md-bitmap.c
@@ -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)