commit | 1edaa447d958bec24c6a79685a5790d98976fd16 | [log] [tgz] |
---|---|---|
author | Mikulas Patocka <mpatocka@redhat.com> | Fri Mar 27 07:22:36 2020 -0400 |
committer | Mike Snitzer <snitzer@redhat.com> | Fri Mar 27 14:36:50 2020 -0400 |
tree | 6ef766b371023a1835c2eedf5f439e866d5d053d | |
parent | 31843edab7cb3924006544b901c9cab33941b684 [diff] |
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>