diff --git a/patches.suse/dm-thin-add-cond_resched-to-various-workqueue-loops-e4f8.patch b/patches.suse/dm-thin-add-cond_resched-to-various-workqueue-loops-e4f8.patch new file mode 100644 index 0000000..47eaefb --- /dev/null +++ b/patches.suse/dm-thin-add-cond_resched-to-various-workqueue-loops-e4f8.patch @@ -0,0 +1,41 @@ +From e4f80303c2353952e6e980b23914e4214487f2a6 Mon Sep 17 00:00:00 2001 +From: Mike Snitzer +Date: Thu, 16 Feb 2023 15:29:44 -0500 +Subject: [PATCH] dm thin: add cond_resched() to various workqueue loops +Git-commit: e4f80303c2353952e6e980b23914e4214487f2a6 +Patch-mainline: v6.3-rc1 +References: git-fixes + +Otherwise on resource constrained systems these workqueues may be too +greedy. + +Signed-off-by: Mike Snitzer +Signed-off-by: Coly Li + +--- + drivers/md/dm-thin.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c +index affd91a53042..6cd105c1cef3 100644 +--- a/drivers/md/dm-thin.c ++++ b/drivers/md/dm-thin.c +@@ -2209,6 +2209,7 @@ static void process_thin_deferred_bios(struct thin_c *tc) + throttle_work_update(&pool->throttle); + dm_pool_issue_prefetches(pool->pmd); + } ++ cond_resched(); + } + blk_finish_plug(&plug); + } +@@ -2291,6 +2292,7 @@ static void process_thin_deferred_cells(struct thin_c *tc) + else + pool->process_cell(tc, cell); + } ++ cond_resched(); + } while (!list_empty(&cells)); + } + +-- +2.35.3 + diff --git a/series.conf b/series.conf index 1eaf687..40c61b4 100644 --- a/series.conf +++ b/series.conf @@ -40074,6 +40074,7 @@ patches.suse/dm-remove-flush_scheduled_work-during-local_exit-0b22.patch patches.suse/dm-add-cond_resched-to-dm_wq_work-0ca4.patch patches.suse/dm-add-cond_resched-to-dm_wq_requeue_work-f776.patch + patches.suse/dm-thin-add-cond_resched-to-various-workqueue-loops-e4f8.patch patches.suse/scsi-libsas-Remove-useless-dev_list-delete-in-sas_ex_discover_end_dev.patch patches.suse/scsi-qla2xxx-check-if-port-is-online-before-sending-els.patch patches.suse/scsi-qla2xxx-fix-link-failure-in-npiv-environment.patch