Keep interrupts enabled during deferred page initialization in order to make code more modular and allow jiffies to update. Original approach, and discussion can be found here: https://lore.kernel.org/linux-mm/20200311123848.118638-1-shile.zhang@xxxxxxxxxxxxxxxxx Changelog v4: - Added reviewed-by Daniel Joardan, and also fixed a stupid mistake: sched_clock() instead of cond_resched(). v3: - Splitted cond_resched() change into a separate patch as suggested by David Hildenbrand v2: - Addressed comments Daniel Jordan. Replaced touch_nmi_watchdog() to cond_resched(). Added reviewed-by's and acked-by's. v1: https://lore.kernel.org/linux-mm/20200401193238.22544-1-pasha.tatashin@xxxxxxxxxx Daniel Jordan (1): mm: call touch_nmi_watchdog() on max order boundaries in deferred init Pavel Tatashin (2): mm: initialize deferred pages with interrupts enabled mm: call cond_resched() from deferred_init_memmap() include/linux/mmzone.h | 2 ++ mm/page_alloc.c | 27 +++++++++++---------------- 2 files changed, 13 insertions(+), 16 deletions(-) -- 2.17.1