Commit 57a96694 authored by Pingfan Liu's avatar Pingfan Liu Committed by sanglipeng
Browse files

dm: add cond_resched() to dm_wq_work()

stable inclusion
from stable-v5.10.173
commit 3383f79d6b0a0641f767052fda3952dd1805d2d6
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=3383f79d6b0a0641f767052fda3952dd1805d2d6



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

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>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent fc52d302
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment