Commit 0752c670 authored by Dean Nelson's avatar Dean Nelson Committed by Tony Luck

[IA64-SGI] XPC and unregistering from notifier lists

Only unregister from notifier lists if XPC is unloading.
Signed-off-by: default avatarDean Nelson <dcn@sgi.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 1ecaded8
...@@ -1022,11 +1022,13 @@ xpc_do_exit(enum xpc_retval reason) ...@@ -1022,11 +1022,13 @@ xpc_do_exit(enum xpc_retval reason)
del_timer_sync(&xpc_hb_timer); del_timer_sync(&xpc_hb_timer);
DBUG_ON(xpc_vars->heartbeating_to_mask != 0); DBUG_ON(xpc_vars->heartbeating_to_mask != 0);
/* take ourselves off of the reboot_notifier_list */ if (reason == xpcUnloading) {
(void) unregister_reboot_notifier(&xpc_reboot_notifier); /* take ourselves off of the reboot_notifier_list */
(void) unregister_reboot_notifier(&xpc_reboot_notifier);
/* take ourselves off of the die_notifier list */ /* take ourselves off of the die_notifier list */
(void) unregister_die_notifier(&xpc_die_notifier); (void) unregister_die_notifier(&xpc_die_notifier);
}
/* close down protections for IPI operations */ /* close down protections for IPI operations */
xpc_restrict_IPI_ops(); xpc_restrict_IPI_ops();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment