Revision dd8041f16b117f63f40fb844d6cdebe8b03514d2 authored by Yasunori Goto on 04 July 2006, 09:57:51 UTC, committed by Linus Torvalds on 04 July 2006, 17:24:57 UTC
I found a bug in memory hot-add code for ia64.

IA64's code has copies of pgdat's array on each node to reduce memory
access over crossing node.  This array is used by NODE_DATA() macro.  When
new node is hot-added, this pgdat's array should be updated and copied on
new node too.

However, I used for_each_online_node() in scatter_node_data() to copy
it. This meant its array is not copied on new node.
Because initialization of structures for new node was halfway,
so online_node_map couldn't be set at this time.

To copy arrays on new node, I changed it to check value of pgdat_list[]
which is source array of copies.  I tested this patch with my Memory Hotadd
emulation on Tiger4.  This patch is for 2.6.17-git20.

Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 31304c9
History
File Mode Size
basic
genksyms
kconfig
ksymoops
mod
package
rt-tester
.gitignore -rw-r--r-- 59 bytes
Kbuild.include -rw-r--r-- 5.2 KB
Lindent -rwxr-xr-x 60 bytes
Makefile -rw-r--r-- 792 bytes
Makefile.build -rw-r--r-- 10.4 KB
Makefile.clean -rw-r--r-- 3.2 KB
Makefile.host -rw-r--r-- 5.9 KB
Makefile.lib -rw-r--r-- 6.4 KB
Makefile.modinst -rw-r--r-- 1.0 KB
Makefile.modpost -rw-r--r-- 3.8 KB
bin2c.c -rw-r--r-- 702 bytes
binoffset.c -rw-r--r-- 3.9 KB
bloat-o-meter -rwxr-xr-x 1.6 KB
checkincludes.pl -rwxr-xr-x 529 bytes
checkstack.pl -rwxr-xr-x 3.7 KB
checkversion.pl -rwxr-xr-x 1.8 KB
conmakehash.c -rw-r--r-- 6.0 KB
export_report.pl -rw-r--r-- 4.2 KB
extract-ikconfig -rwxr-xr-x 1.7 KB
gcc-version.sh -rw-r--r-- 338 bytes
gen_initramfs_list.sh -rw-r--r-- 6.4 KB
kallsyms.c -rw-r--r-- 12.0 KB
kernel-doc -rwxr-xr-x 50.9 KB
makelst -rwxr-xr-x 941 bytes
mkcompile_h -rwxr-xr-x 2.3 KB
mkmakefile -rw-r--r-- 742 bytes
mksysmap -rw-r--r-- 1.3 KB
mkuboot.sh -rwxr-xr-x 293 bytes
mkversion -rw-r--r-- 74 bytes
namespace.pl -rwxr-xr-x 13.1 KB
patch-kernel -rwxr-xr-x 9.7 KB
pnmtologo.c -rw-r--r-- 11.7 KB
profile2linkerlist.pl -rw-r--r-- 378 bytes
setlocalversion -rw-r--r-- 527 bytes
show_delta -rwxr-xr-x 3.0 KB
ver_linux -rwxr-xr-x 3.1 KB

back to top