]> git.baikalelectronics.ru Git - kernel.git/commit
dm writecache: add cond_resched to loop in persistent_memory_claim()
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 19 Jun 2020 15:51:34 +0000 (11:51 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 19 Jun 2020 16:32:24 +0000 (12:32 -0400)
commit3d055b4400e1ee8eed5e3c0207f405d905386aae
treedeffd0ce137febc8e079fca0efaea8660c108ac1
parent0bef73ddc5f553782c0d18b9e7d3e9ddab2c15db
dm writecache: add cond_resched to loop in persistent_memory_claim()

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

Fixes: 27be8d9547306 ("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>
drivers/md/dm-writecache.c