From: Rusty Russell Date: Wed, 3 Jul 2013 00:36:28 +0000 (+0930) Subject: module: do percpu allocation after uniqueness check. No, really! X-Git-Tag: v3.11-rc1~44^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d8022e8aba85192e937f1f0f7450e256d66ae5c;p=pandora-kernel.git module: do percpu allocation after uniqueness check. No, really! v3.8-rc1-5-g1fb9341 was supposed to stop parallel kvm loads exhausting percpu memory on large machines: Now we have a new state MODULE_STATE_UNFORMED, we can insert the module into the list (and thus guarantee its uniqueness) before we allocate the per-cpu region. In my defence, it didn't actually say the patch did this. Just that we "can". This patch actually *does* it. Signed-off-by: Rusty Russell Tested-by: Jim Hull Cc: stable@kernel.org # 3.8 --- Reading git-diff-tree failed