]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - kernel/module.c
module: do percpu allocation after uniqueness check. No, really!
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 3 Jul 2013 00:36:28 +0000 (10:06 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 3 Jul 2013 00:45:09 +0000 (10:15 +0930)
commit8d8022e8aba85192e937f1f0f7450e256d66ae5c
tree14dfe2cb950815bfcd602cdbd376bb8694c98d3d
parent54041d8a73337411b485ff76957fb106cb5d40d0
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 <rusty@rustcorp.com.au>
Tested-by: Jim Hull <jim.hull@hp.com>
Cc: stable@kernel.org # 3.8
kernel/module.c