s390/mm: add cond_resched call to kernel page table dumper
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 13 Feb 2017 14:20:18 +0000 (15:20 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 17 Feb 2017 06:41:07 +0000 (07:41 +0100)
commit549f2bf594782faa440055255831c9a51940a651
tree0af1543196a3d1f8a3b462397f453b1be798d903
parent466178fc4e2937685edb7be005da4eb28bb81d72
s390/mm: add cond_resched call to kernel page table dumper

Walking kernel page tables within the kernel page table dumper may
potentially take a lot of time. This may lead to soft lockup warning
messages.
To avoid this add a cond_resched call for each pgd_level iteration.

This is the same as "x86/mm/ptdump: Fix soft lockup in page table
walker" for x86.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/dump_pagetables.c