]> git.baikalelectronics.ru Git - kernel.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)
commitc4c547592ac560beb8dfaf8ea4ec3b2cbfdf8692
tree7c7be4f090f2da5084774aab39475e89234f9e4c
parent5609c2271eb0d0a1cc3c36df471e6faeff08e072
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