summaryrefslogtreecommitdiff
path: root/lib/test_xarray.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2020-03-27 07:22:36 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-17 10:50:17 +0200
commitbef0d2f5fdcbc39f2c5b321d35d2c8b2f1e99612 (patch)
tree795b352e06b1b110aa1826935e56f686d520ae10 /lib/test_xarray.c
parent5c84ab9c96d78dc124cf31d47cf35a8c97c740ed (diff)
dm writecache: add cond_resched to avoid CPU hangs
commit 1edaa447d958bec24c6a79685a5790d98976fd16 upstream. Initializing a dm-writecache device can take a long time when the persistent memory device is large. Add cond_resched() to a few loops to avoid warnings that the CPU is stuck. Cc: stable@vger.kernel.org # v4.18+ 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/test_xarray.c')
0 files changed, 0 insertions, 0 deletions