Skip to content
Snippets Groups Projects
Commit 866f7e40 authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Yang Yingliang
Browse files

dm writecache: add cond_resched to loop in persistent_memory_claim()


stable inclusion
from linux-4.19.131
commit 6cd52ae3868b677052ef749a424a7d9ecdc2db08

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

commit d35bd764 upstream.

Add cond_resched() to a loop that fills in the mapper memory area
because the loop can be executed many times.

Fixes: 48debafe ("dm: add writecache target")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 41392d7e
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment