Commit 2579f197 authored by Mike Snitzer's avatar Mike Snitzer Committed by sanglipeng
Browse files

dm thin: add cond_resched() to various workqueue loops

stable inclusion
from stable-v5.10.173
commit 52206dd1c77f04093be0dce7c9a6d58634ae6a53
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=52206dd1c77f04093be0dce7c9a6d58634ae6a53



--------------------------------

[ Upstream commit e4f80303 ]

Otherwise on resource constrained systems these workqueues may be too
greedy.

Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 30a6cf6c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment