diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2020-06-19 18:51:34 +0300 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2020-07-01 06:17:19 +0300 |
commit | 6cd52ae3868b677052ef749a424a7d9ecdc2db08 (patch) | |
tree | 5f66ecb9458bb55e0d07051d8b7e2827dce0fa1e /lib/locking-selftest-wlock.h | |
parent | a33e2d0aa4e265ae5ea06778516b863b17a7c737 (diff) | |
download | linux-6cd52ae3868b677052ef749a424a7d9ecdc2db08.tar.xz |
dm writecache: add cond_resched to loop in persistent_memory_claim()
commit d35bd764e6899a7bea71958f08d16cea5bfa1919 upstream.
Add cond_resched() to a loop that fills in the mapper memory area
because the loop can be executed many times.
Fixes: 48debafe4f2fe ("dm: add writecache target")
Cc: stable@vger.kernel.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/locking-selftest-wlock.h')
0 files changed, 0 insertions, 0 deletions