The patch titled Subject: mm, devm_memremap_pages: hold device_hotplug lock over mem_hotplug_{begin, done} has been added to the -mm tree. Its filename is mm-devm_memremap_pages-hold-device_hotplug-lock-over-mem_hotplug_begin-done-v2.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-devm_memremap_pages-hold-device_hotplug-lock-over-mem_hotplug_begin-done-v2.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-devm_memremap_pages-hold-device_hotplug-lock-over-mem_hotplug_begin-done-v2.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/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Dan Williams <dan.j.williams@xxxxxxxxx> Subject: mm, devm_memremap_pages: hold device_hotplug lock over mem_hotplug_{begin, done} Link: http://lkml.kernel.org/r/148728203365.38457.17804568297887708345.stgit@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Signed-off-by: Dan Williams <dan.j.williams@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/memremap.c | 1 + 1 file changed, 1 insertion(+) diff -puN kernel/memremap.c~mm-devm_memremap_pages-hold-device_hotplug-lock-over-mem_hotplug_begin-done-v2 kernel/memremap.c --- a/kernel/memremap.c~mm-devm_memremap_pages-hold-device_hotplug-lock-over-mem_hotplug_begin-done-v2 +++ a/kernel/memremap.c @@ -246,6 +246,7 @@ static void devm_memremap_pages_release( /* pages are dead and unused, undo the arch mapping */ align_start = res->start & ~(SECTION_SIZE - 1); align_size = ALIGN(resource_size(res), SECTION_SIZE); + lock_device_hotplug(); mem_hotplug_begin(); arch_remove_memory(align_start, align_size); _ Patches currently in -mm which might be from dan.j.williams@xxxxxxxxx are mm-devm_memremap_pages-hold-device_hotplug-lock-over-mem_hotplug_begin-done.patch mm-devm_memremap_pages-hold-device_hotplug-lock-over-mem_hotplug_begin-done-v2.patch mm-validate-device_hotplug-is-held-for-memory-hotplug.patch mm-fix-get_user_pages-vs-device-dax-pud-mappings.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