dm thin: add cond_resched() to various workqueue loops
[ Upstream commit e4f80303c2
]
Otherwise on resource constrained systems these workqueues may be too
greedy.
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Родитель
f0c8b85af2
Коммит
01663c2158
|
@ -2217,6 +2217,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);
|
||||
}
|
||||
|
@ -2299,6 +2300,7 @@ static void process_thin_deferred_cells(struct thin_c *tc)
|
|||
else
|
||||
pool->process_cell(tc, cell);
|
||||
}
|
||||
cond_resched();
|
||||
} while (!list_empty(&cells));
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче