diff options
author | 2017-03-16 18:23:02 -0700 | |
---|---|---|
committer | 2017-03-16 18:23:02 -0700 | |
commit | d528ae0d3dfedea553812c957a6ed1e87feeed8a (patch) | |
tree | bb535047ccdfde275315091bd9eba0ee6ad0ba08 /kernel | |
parent | Merge tag 'xfs-4.11-fixes-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux (diff) | |
parent | drivers core: remove assert_held_device_hotplug() (diff) | |
download | wireguard-linux-d528ae0d3dfedea553812c957a6ed1e87feeed8a.tar.xz wireguard-linux-d528ae0d3dfedea553812c957a6ed1e87feeed8a.zip |
Merge branch 'akpm' (patches from Andrew)
Merge fixes from Andrew Morton:
"6 fixes"
* emailed patches from Andrew Morton <akpm@linux-foundation.org>:
drivers core: remove assert_held_device_hotplug()
mm: add private lock to serialize memory hotplug operations
mm: don't warn when vmalloc() fails due to a fatal signal
mm, x86: fix native_pud_clear build error
kasan: add a prototype of task_struct to avoid warning
z3fold: fix spinlock unlocking in page reclaim
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/memremap.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/memremap.c b/kernel/memremap.c index 06123234f118..07e85e5229da 100644 --- a/kernel/memremap.c +++ b/kernel/memremap.c @@ -247,11 +247,9 @@ static void devm_memremap_pages_release(struct device *dev, void *data) 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); mem_hotplug_done(); - unlock_device_hotplug(); untrack_pfn(NULL, PHYS_PFN(align_start), align_size); pgmap_radix_release(res); @@ -364,11 +362,9 @@ void *devm_memremap_pages(struct device *dev, struct resource *res, if (error) goto err_pfn_remap; - lock_device_hotplug(); mem_hotplug_begin(); error = arch_add_memory(nid, align_start, align_size, true); mem_hotplug_done(); - unlock_device_hotplug(); if (error) goto err_add_memory; |