Skip to content
Commit f77692d6 authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm: add cond_resched() to dm_wq_requeue_work()



Otherwise the while() loop in dm_wq_requeue_work() can result in a
"dead loop" on systems that have preemption disabled. This is
particularly problematic on single cpu systems.

Fixes: 8b211aac ("dm: add two stage requeue mechanism")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
parent 0ca44fce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment