The patch titled Subject: mm: initialize pages on demand during boot has been added to the -mm tree. Its filename is mm-initialize-pages-on-demand-during-boot-v6.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-initialize-pages-on-demand-during-boot-v6.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-initialize-pages-on-demand-during-boot-v6.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Pavel Tatashin <pasha.tatashin@xxxxxxxxxx> Subject: mm: initialize pages on demand during boot Remove useless pgdata_resize_lock_irq(), as regular pgdata_resize_lock() does exactly what is needed. Link: http://lkml.kernel.org/r/20180313182355.17669-3-pasha.tatashin@xxxxxxxxxx Signed-off-by: Pavel Tatashin <pasha.tatashin@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_alloc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff -puN mm/page_alloc.c~mm-initialize-pages-on-demand-during-boot-v6 mm/page_alloc.c --- a/mm/page_alloc.c~mm-initialize-pages-on-demand-during-boot-v6 +++ a/mm/page_alloc.c @@ -1613,16 +1613,16 @@ deferred_grow_zone(struct zone *zone, un if (zone_end_pfn(zone) != pgdat_end_pfn(pgdat)) return false; - pgdat_resize_lock_irq(pgdat, &flags); + pgdat_resize_lock(pgdat, &flags); /* * If deferred pages have been initialized while we were waiting for - * the lock, return true, as the zone was grown. The caller will retry + * the lock, return true, as the zone was grown. The caller will retry * this zone. We won't return to this function since the caller also * has this static branch. */ if (!static_branch_unlikely(&deferred_pages)) { - pgdat_resize_unlock_irq(pgdat, &flags); + pgdat_resize_unlock(pgdat, &flags); return true; } @@ -1631,14 +1631,14 @@ deferred_grow_zone(struct zone *zone, un * true, as there might be enough pages already. */ if (first_deferred_pfn != pgdat->first_deferred_pfn) { - pgdat_resize_unlock_irq(pgdat, &flags); + pgdat_resize_unlock(pgdat, &flags); return true; } first_init_pfn = max(zone->zone_start_pfn, first_deferred_pfn); if (first_init_pfn >= pgdat_end_pfn(pgdat)) { - pgdat_resize_unlock_irq(pgdat, &flags); + pgdat_resize_unlock(pgdat, &flags); return false; } @@ -1667,7 +1667,7 @@ deferred_grow_zone(struct zone *zone, un break; } pgdat->first_deferred_pfn = first_deferred_pfn; - pgdat_resize_unlock_irq(pgdat, &flags); + pgdat_resize_unlock(pgdat, &flags); return nr_pages > 0; } _ Patches currently in -mm which might be from pasha.tatashin@xxxxxxxxxx are mm-disable-interrupts-while-initializing-deferred-pages.patch mm-disable-interrupts-while-initializing-deferred-pages-v6.patch mm-initialize-pages-on-demand-during-boot.patch mm-initialize-pages-on-demand-during-boot-fix-3.patch mm-initialize-pages-on-demand-during-boot-fix-4.patch mm-initialize-pages-on-demand-during-boot-v5.patch mm-initialize-pages-on-demand-during-boot-v6.patch mm-memory_hotplug-enforce-block-size-aligned-range-check.patch x86-mm-memory_hotplug-determine-block-size-based-on-the-end-of-boot-memory.patch x86-mm-memory_hotplug-determine-block-size-based-on-the-end-of-boot-memory-v4.patch mm-uninitialized-struct-page-poisoning-sanity-checking.patch mm-uninitialized-struct-page-poisoning-sanity-checking-v4.patch mm-memory_hotplug-optimize-probe-routine.patch mm-memory_hotplug-dont-read-nid-from-struct-page-during-hotplug.patch mm-memory_hotplug-dont-read-nid-from-struct-page-during-hotplug-v5.patch mm-memory_hotplug-optimize-memory-hotplug.patch mm-memory_hotplug-optimize-memory-hotplug-v5.patch xen-mm-allow-deferred-page-initialization-for-xen-pv-domains.patch sparc64-ng4-memset-32-bits-overflow.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html