- memoryless-nodes-generic-management-of-nodemasks-for-various-purposes-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Initialize N_*_MEMORY and N_CPU masks for non-NUMA config
has been removed from the -mm tree.  Its filename was
     memoryless-nodes-generic-management-of-nodemasks-for-various-purposes-fix.patch

This patch was dropped because it was folded into memoryless-nodes-generic-management-of-nodemasks-for-various-purposes.patch

------------------------------------------------------
Subject: Initialize N_*_MEMORY and N_CPU masks for non-NUMA config
From: Lee Schermerhorn <Lee.Schermerhorn@xxxxxx>

The N_*_MEMORY and N_CPU node state masks are not being initialized for
!NUMA because node_set_state() becomes a no-op for that config.  This
causes one to hit a BUG_ON() attempting to mount cpusets to partition cpus.
 Discovered and diagnosed by Serge Hallyn and Dhaval Giani.

Statically initialize the N_*_MEMORY and N_CPU node state masks for !NUMA
configurations.  This static initialization is required because the
node_set_state() function becomes a no-op for !NUMA.  Other generic code
assumes that these masks are set correctly.

Note that in NUMA configurations, these masks will be populated correctly,
so don't bother with static initialization.  No sense in making assumptions
that could be broken down the road, resulting in extra work for someone to
debug.  Unlikely, perhaps, but who needs the aggravation...

Tested on i386 !NUMA by Dhaval Giani.  Fixes cpuset BUG.

Signed-off-by: Lee Schermerhorn <lee.schermerhorn@xxxxxx>
Acked-by: Christoph Lameter <clameter@xxxxxxx>
Cc: "Serge E. Hallyn" <serge@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/page_alloc.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletion(-)

diff -puN mm/page_alloc.c~memoryless-nodes-generic-management-of-nodemasks-for-various-purposes-fix mm/page_alloc.c
--- a/mm/page_alloc.c~memoryless-nodes-generic-management-of-nodemasks-for-various-purposes-fix
+++ a/mm/page_alloc.c
@@ -51,7 +51,14 @@
  */
 nodemask_t node_states[NR_NODE_STATES] __read_mostly = {
 	[N_POSSIBLE] = NODE_MASK_ALL,
-	[N_ONLINE] = { { [0] = 1UL } }
+	[N_ONLINE] = { { [0] = 1UL } },
+#ifndef CONFIG_NUMA
+	[N_NORMAL_MEMORY] = { { [0] = 1UL } },
+#ifdef CONFIG_HIGHMEM
+	[N_HIGH_MEMORY] = { { [0] = 1UL } },
+#endif
+	[N_CPU] = { { [0] = 1UL } },
+#endif	/* NUMA */
 };
 EXPORT_SYMBOL(node_states);
 
_

Patches currently in -mm which might be from Lee.Schermerhorn@xxxxxx are

origin.patch
mem-policy-add-mpol_f_mems_allowed-get_mempolicy-flag.patch
memoryless-nodes-generic-management-of-nodemasks-for-various-purposes.patch
memoryless-nodes-generic-management-of-nodemasks-for-various-purposes-fix.patch
memoryless-nodes-introduce-mask-of-nodes-with-memory.patch
memoryless-nodes-introduce-mask-of-nodes-with-memory-fix.patch
update-n_high_memory-node-state-for-memory-hotadd.patch
memoryless-nodes-add-n_cpu-node-state-move-setup-of-n_cpu-node-state-mask.patch
memoryless-nodes-fixup-uses-of-node_online_map-in-generic-code.patch
memoryless-nodes-fixup-uses-of-node_online_map-in-generic-code-fix.patch
memoryless-nodes-fixup-uses-of-node_online_map-in-generic-code-fix-2-3.patch
add-node-states-sysfs-class-attributes-v5.patch
memory-controller-add-per-container-lru-and-reclaim-v7-fix-2.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux