diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2020-03-27 07:22:36 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-03-27 14:36:50 -0400 |
commit | 1edaa447d958bec24c6a79685a5790d98976fd16 (patch) | |
tree | 6ef766b371023a1835c2eedf5f439e866d5d053d /drivers/md/dm-clone-metadata.c | |
parent | 31843edab7cb3924006544b901c9cab33941b684 (diff) | |
download | lwn-1edaa447d958bec24c6a79685a5790d98976fd16.tar.gz lwn-1edaa447d958bec24c6a79685a5790d98976fd16.zip |
dm writecache: add cond_resched to avoid CPU hangs
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>
Diffstat (limited to 'drivers/md/dm-clone-metadata.c')
0 files changed, 0 insertions, 0 deletions