The patch titled Subject: drivers-base-memoryc-cache-memory-blocks-in-xarray-to-accelerate-lookup-fix has been removed from the -mm tree. Its filename was drivers-base-memoryc-cache-memory-blocks-in-xarray-to-accelerate-lookup-fix.patch This patch was dropped because it was folded into drivers-base-memoryc-cache-memory-blocks-in-xarray-to-accelerate-lookup.patch ------------------------------------------------------ From: David Hildenbrand <david@xxxxxxxxxx> Subject: drivers-base-memoryc-cache-memory-blocks-in-xarray-to-accelerate-lookup-fix document the locking Link: http://lkml.kernel.org/r/bc21eec6-7251-4c91-2f57-9a0671f8d414@xxxxxxxxxx Cc: Scott Cheloha <cheloha@xxxxxxxxxxxxx> Cc: David Hildenbrand <david@xxxxxxxxxx> Cc: Nathan Lynch <nathanl@xxxxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Cc: "Rafael J. Wysocki" <rafael@xxxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Cc: Rick Lindsley <ricklind@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/base/memory.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) --- a/drivers/base/memory.c~drivers-base-memoryc-cache-memory-blocks-in-xarray-to-accelerate-lookup-fix +++ a/drivers/base/memory.c @@ -497,7 +497,11 @@ int __weak arch_get_memory_phys_device(u return 0; } -/* A reference for the returned memory block device is acquired. */ +/* + * A reference for the returned memory block device is acquired. + * + * Called under device_hotplug_lock. + */ static struct memory_block *find_memory_block_by_id(unsigned long block_id) { struct memory_block *mem; @@ -508,6 +512,9 @@ static struct memory_block *find_memory_ return mem; } +/* + * Called under device_hotplug_lock. + */ struct memory_block *find_memory_block(struct mem_section *section) { unsigned long block_id = base_memory_block_id(__section_nr(section)); @@ -761,6 +768,8 @@ void __init memory_dev_init(void) * * In case func() returns an error, walking is aborted and the error is * returned. + * + * Called under device_hotplug_lock. */ int walk_memory_blocks(unsigned long start, unsigned long size, void *arg, walk_memory_blocks_func_t func) _ Patches currently in -mm which might be from david@xxxxxxxxxx are drivers-base-memoryc-cache-memory-blocks-in-xarray-to-accelerate-lookup.patch powerpc-pseries-hotplug-memory-stop-checking-is_mem_section_removable.patch mm-memory_hotplug-remove-is_mem_section_removable.patch mm-memory_hotplug-set-node_start_pfn-of-hotadded-pgdat-to-0.patch mm-memory_hotplug-handle-memblocks-only-with-config_arch_keep_memblock.patch mm-memory_hotplug-introduce-add_memory_driver_managed.patch kexec_file-dont-place-kexec-images-on-ioresource_mem_driver_managed.patch device-dax-add-memory-via-add_memory_driver_managed.patch