md/md-bitmap: Add missing destroy_work_on_stack()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Yuan Can <yuancan@xxxxxxxxxx>

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@xxxxxxxxxxxxxxx
Signed-off-by: Yuan Can <yuancan@xxxxxxxxxx>
Reviewed-by: Yu Kuai <yukuai3@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20241105130105.127336-1-yuancan@xxxxxxxxxx
Signed-off-by: Song Liu <song@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/md/md-bitmap.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/md/md-bitmap.c
+++ b/drivers/md/md-bitmap.c
@@ -1089,6 +1089,7 @@ void md_bitmap_unplug_async(struct bitma
 
 	queue_work(md_bitmap_wq, &unplug_work.work);
 	wait_for_completion(&done);
+	destroy_work_on_stack(&unplug_work.work);
 }
 EXPORT_SYMBOL(md_bitmap_unplug_async);
 


Patches currently in stable-queue which might be from yuancan@xxxxxxxxxx are

queue-6.6/md-md-bitmap-add-missing-destroy_work_on_stack.patch
queue-6.6/wifi-wfx-fix-error-handling-in-wfx_core_init.patch
queue-6.6/firmware-google-unregister-driver_info-on-failure.patch
queue-6.6/cpufreq-loongson2-unregister-platform_driver-on-fail.patch
queue-6.6/drm-amdkfd-fix-wrong-usage-of-init_work.patch




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux