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:Pingfan Liu <piliu@redhat.com> Acked-by:
Ming Lei <ming.lei@redhat.com> Signed-off-by:
Mike Snitzer <snitzer@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment