linux/mm
Yasunori Goto b9049e2344 memory hotplug: make kmem_cache_node for SLUB on memory online avoid panic
Fix a panic due to access NULL pointer of kmem_cache_node at discard_slab()
after memory online.

When memory online is called, kmem_cache_nodes are created for all SLUBs
for new node whose memory are available.

slab_mem_going_online_callback() is called to make kmem_cache_node() in
callback of memory online event.  If it (or other callbacks) fails, then
slab_mem_offline_callback() is called for rollback.

In memory offline, slab_mem_going_offline_callback() is called to shrink
all slub cache, then slab_mem_offline_callback() is called later.

[akpm@linux-foundation.org: coding-style fixes]
[akpm@linux-foundation.org: locking fix]
[akpm@linux-foundation.org: build fix]
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-22 08:13:17 -07:00
..
Kconfig small documentation fixes 2007-10-20 02:46:58 +02:00
Makefile
allocpercpu.c
backing-dev.c mm: per device dirty threshold 2007-10-17 08:42:45 -07:00
bootmem.c
bounce.c
fadvise.c
filemap.c kernel-api docbook: fix content problems 2007-10-19 11:53:35 -07:00
filemap_xip.c
fremap.c remap_file_pages: kernel-doc corrections 2007-10-17 08:43:07 -07:00
highmem.c
hugetlb.c spelling fixes: mm/ 2007-10-20 01:27:18 +02:00
internal.h
madvise.c
memory.c spelling fixes: mm/ 2007-10-20 01:27:18 +02:00
memory_hotplug.c memory hotplug: rearrange memory hotplug notifier 2007-10-22 08:13:17 -07:00
mempolicy.c Uninline find_task_by_xxx set of functions 2007-10-19 11:53:40 -07:00
mempool.c spelling fixes: mm/ 2007-10-20 01:27:18 +02:00
migrate.c Typo fixes retrun -> return 2007-10-20 02:13:26 +02:00
mincore.c
mlock.c
mmap.c setup vma->vm_page_prot by vm_get_page_prot() 2007-10-19 11:53:34 -07:00
mmzone.c
mprotect.c setup vma->vm_page_prot by vm_get_page_prot() 2007-10-19 11:53:34 -07:00
mremap.c sparse pointer use of zero as null 2007-10-18 14:37:31 -07:00
msync.c
nommu.c Explain clearly why kmalloc() can't use __GFP_HIGHMEM. 2007-10-19 23:11:38 +02:00
oom_kill.c oom_kill bug 2007-10-20 15:04:06 -07:00
page-writeback.c spelling fixes: mm/ 2007-10-20 01:27:18 +02:00
page_alloc.c spelling fixes: mm/ 2007-10-20 01:27:18 +02:00
page_io.c
page_isolation.c
pdflush.c
prio_tree.c spelling fixes: mm/ 2007-10-20 01:27:18 +02:00
quicklist.c
readahead.c
rmap.c mm: document tree_lock->zone.lock lockorder 2007-10-17 08:42:46 -07:00
shmem.c r/o bind mounts: filesystem helpers for custom 'struct file's 2007-10-17 08:43:04 -07:00
shmem_acl.c
slab.c spelling fixes: mm/ 2007-10-20 01:27:18 +02:00
slob.c Slab API: remove useless ctor parameter and reorder parameters 2007-10-17 08:42:45 -07:00
slub.c memory hotplug: make kmem_cache_node for SLUB on memory online avoid panic 2007-10-22 08:13:17 -07:00
sparse-vmemmap.c
sparse.c
swap.c spelling fixes: mm/ 2007-10-20 01:27:18 +02:00
swap_state.c
swapfile.c
thrash.c
tiny-shmem.c r/o bind mounts: filesystem helpers for custom 'struct file's 2007-10-17 08:43:04 -07:00
truncate.c Drop some headers from mm.h 2007-10-17 08:42:55 -07:00
util.c
vmalloc.c spelling fixes: mm/ 2007-10-20 01:27:18 +02:00
vmscan.c spelling fixes: mm/ 2007-10-20 01:27:18 +02:00
vmstat.c oom: change all_unreclaimable zone member to flags 2007-10-17 08:42:45 -07:00