]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm: numa: initialise numa balancing after jump label initialisation
authorMel Gorman <mgorman@suse.de>
Wed, 29 Jan 2014 22:05:42 +0000 (14:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 30 Jan 2014 00:22:39 +0000 (16:22 -0800)
commitc297663c0b3930491a3cb2aba4b6e5a7159c3503
treefa9fbd28e91301c97ae02e7fc954bea17327093c
parenta1c3bfb2f67ef766de03f1f56bdfff9c8595ab14
mm: numa: initialise numa balancing after jump label initialisation

The command line parsing takes place before jump labels are initialised
which generates a warning if numa_balancing= is specified and
CONFIG_JUMP_LABEL is set.

On older kernels before commit c4b2c0c5f647 ("static_key: WARN on usage
before jump_label_init was called") the kernel would have crashed.  This
patch enables automatic numa balancing later in the initialisation
process if numa_balancing= is specified.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c