Patch "dm: add cond_resched() to dm_wq_requeue_work()" has been added to the 6.1-stable tree

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

 



This is a note to let you know that I've just added the patch titled

    dm: add cond_resched() to dm_wq_requeue_work()

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     dm-add-cond_resched-to-dm_wq_requeue_work.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From f77692d65d54665d81815349cc727baa85e8b71d Mon Sep 17 00:00:00 2001
From: Mike Snitzer <snitzer@xxxxxxxxxx>
Date: Thu, 16 Feb 2023 12:10:05 -0500
Subject: dm: add cond_resched() to dm_wq_requeue_work()

From: Mike Snitzer <snitzer@xxxxxxxxxx>

commit f77692d65d54665d81815349cc727baa85e8b71d upstream.

Otherwise the while() loop in dm_wq_requeue_work() can result in a
"dead loop" on systems that have preemption disabled. This is
particularly problematic on single cpu systems.

Fixes: 8b211aaccb915 ("dm: add two stage requeue mechanism")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Mike Snitzer <snitzer@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/md/dm.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1020,6 +1020,7 @@ static void dm_wq_requeue_work(struct wo
 		io->next = NULL;
 		__dm_io_complete(io, false);
 		io = next;
+		cond_resched();
 	}
 }
 


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

queue-6.1/dm-cache-add-cond_resched-to-various-workqueue-loops.patch
queue-6.1/dm-add-cond_resched-to-dm_wq_requeue_work.patch
queue-6.1/dm-flakey-don-t-corrupt-the-zero-page.patch
queue-6.1/dm-add-cond_resched-to-dm_wq_work.patch
queue-6.1/dm-remove-flush_scheduled_work-during-local_exit.patch
queue-6.1/dm-improve-shrinker-debug-names.patch
queue-6.1/dm-flakey-fix-logic-when-corrupting-a-bio.patch
queue-6.1/dm-thin-add-cond_resched-to-various-workqueue-loops.patch
queue-6.1/dm-send-just-one-event-on-resize-not-two.patch
queue-6.1/dm-flakey-fix-a-bug-with-32-bit-highmem-systems.patch
queue-6.1/dm-cache-free-background-tracker-s-queued-work-in-btracker_destroy.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