From: Alex Thorlton Date: Thu, 18 Dec 2014 18:44:30 +0000 (-0600) Subject: sched: Fix KMALLOC_MAX_SIZE overflow during cpumask allocation X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~297^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b74e6278fd6db5848163ccdc6e9d8eb6efdee9bd;p=pandora-kernel.git sched: Fix KMALLOC_MAX_SIZE overflow during cpumask allocation When allocating space for load_balance_mask, in sched_init, when CPUMASK_OFFSTACK is set, we've managed to spill over KMALLOC_MAX_SIZE on our 6144 core machine. The patch below breaks up the allocations so that they don't overflow the max alloc size. It also allocates the masks on the the node from which they'll most commonly be accessed, to minimize remote accesses on NUMA machines. Suggested-by: George Beshers Signed-off-by: Alex Thorlton Cc: George Beshers Cc: Russ Anderson Cc: Peter Zijlstra Cc: Linus Torvalds Link: http://lkml.kernel.org/r/1418928270-148543-1-git-send-email-athorlton@sgi.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed