This is a note to let you know that I've just added the patch titled dm: add cond_resched() to dm_wq_work() to the 6.2-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_work.patch and it can be found in the queue-6.2 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 0ca44fcef241768fd25ee763b3d203b9852f269b Mon Sep 17 00:00:00 2001 From: Pingfan Liu <piliu@xxxxxxxxxx> Date: Wed, 15 Feb 2023 19:23:40 +0800 Subject: dm: add cond_resched() to dm_wq_work() From: Pingfan Liu <piliu@xxxxxxxxxx> commit 0ca44fcef241768fd25ee763b3d203b9852f269b upstream. Otherwise the while() loop in dm_wq_work() can result in a "dead loop" on systems that have preemption disabled. This is particularly problematic on single cpu systems. Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Pingfan Liu <piliu@xxxxxxxxxx> Acked-by: Ming Lei <ming.lei@xxxxxxxxxx> 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 @@ -2565,6 +2565,7 @@ static void dm_wq_work(struct work_struc break; submit_bio_noacct(bio); + cond_resched(); } } Patches currently in stable-queue which might be from piliu@xxxxxxxxxx are queue-6.2/dm-add-cond_resched-to-dm_wq_work.patch