]> asedeno.scripts.mit.edu Git - linux.git/commit
modules: split part of complete_formation() into prepare_coming_module()
authorJessica Yu <jeyu@redhat.com>
Thu, 17 Mar 2016 00:55:38 +0000 (20:55 -0400)
committerJiri Kosina <jkosina@suse.cz>
Thu, 17 Mar 2016 08:45:09 +0000 (09:45 +0100)
commit4c973d1620ae08f5cbe27644c5f5b974c8f594ec
tree7c7be4f090f2da5084774aab39475e89234f9e4c
parent06e1c170c332dca755f389a99671912ff405698c
modules: split part of complete_formation() into prepare_coming_module()

Put all actions in complete_formation() that are performed after
module->state is set to MODULE_STATE_COMING into a separate function
prepare_coming_module(). This split prepares for the removal of the
livepatch module notifiers in favor of hard-coding function calls to
klp_module_{coming,going} in the module loader.

The complete_formation -> prepare_coming_module split will also make error
handling easier since we can jump to the appropriate error label to do any
module GOING cleanup after all the COMING-actions have completed.

Signed-off-by: Jessica Yu <jeyu@redhat.com>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
kernel/module.c