aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorYasunori Goto <[email protected]>2007-10-21 16:41:37 -0700
committerLinus Torvalds <[email protected]>2007-10-22 08:13:17 -0700
commitb9049e234401e1fad8459d69a952b174d76c399d (patch)
tree619adc6533f33379baf25253ff56603b272453c8 /include/linux/debugobjects.h
parent7b78d335ac15b10bbcb0397c635d7f0d569b0270 (diff)
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. [[email protected]: coding-style fixes] [[email protected]: locking fix] [[email protected]: build fix] Signed-off-by: Yasunori Goto <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions