diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2009-01-06 17:41:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 18:59:21 -0500 |
commit | 0deddf436a37c18ceb26c6e3b632fb9b5f58a0c1 (patch) | |
tree | ff6e3066d76d57b22fd82eed8f8e9d2ce07cf4f0 /kernel/module.c | |
parent | 49ad2fd76c97133fb396edc24ded7fe26093a578 (diff) |
module: add MODULE_STATE_LIVE notify
Add a module notifier call which notifies that the state of a module
changes from MODULE_STATE_COMING to MODULE_STATE_LIVE.
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/module.c')
-rw-r--r-- | kernel/module.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c index cc79c942c572..496dcb57b608 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -2352,6 +2352,8 @@ sys_init_module(void __user *umod, | |||
2352 | /* Now it's a first class citizen! Wake up anyone waiting for it. */ | 2352 | /* Now it's a first class citizen! Wake up anyone waiting for it. */ |
2353 | mod->state = MODULE_STATE_LIVE; | 2353 | mod->state = MODULE_STATE_LIVE; |
2354 | wake_up(&module_wq); | 2354 | wake_up(&module_wq); |
2355 | blocking_notifier_call_chain(&module_notify_list, | ||
2356 | MODULE_STATE_LIVE, mod); | ||
2355 | 2357 | ||
2356 | mutex_lock(&module_mutex); | 2358 | mutex_lock(&module_mutex); |
2357 | /* Drop initial reference. */ | 2359 | /* Drop initial reference. */ |