From: Joe Jin Date: Mon, 16 Jul 2007 06:38:12 +0000 (-0700) Subject: hugetlb: fix race in alloc_fresh_huge_page() X-Git-Tag: v2.6.23-rc1~1028 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f96efd585b8d847181f81bf16721f96ded18d9fe;p=pandora-kernel.git hugetlb: fix race in alloc_fresh_huge_page() That static `nid' index needs locking. Without it we can end up calling alloc_pages_node() with an illegal node ID and the kernel crashes. Acked-by: gurudas pai Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed