Commit 3383f79d authored by Pingfan Liu's avatar Pingfan Liu Committed by Greg Kroah-Hartman
Browse files

dm: add cond_resched() to dm_wq_work()



commit 0ca44fce upstream.

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

Cc: stable@vger.kernel.org
Signed-off-by: default avatarPingfan Liu <piliu@redhat.com>
Acked-by: default avatarMing Lei <ming.lei@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e6409208
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment