projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f77692d
)
dm thin: add cond_resched() to various workqueue loops
author
Mike Snitzer
<snitzer@kernel.org>
Thu, 16 Feb 2023 20:29:44 +0000
(15:29 -0500)
committer
Mike Snitzer
<snitzer@kernel.org>
Fri, 17 Feb 2023 19:46:27 +0000
(14:46 -0500)
Otherwise on resource constrained systems these workqueues may be too
greedy.
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-thin.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-thin.c
b/drivers/md/dm-thin.c
index affd91a53042c0452a673f4da6e0ab5528b427ea..6cd105c1cef35cc51defa05a16684b361ef1ac12 100644
(file)
--- 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));
}