[Devel] [PATCH RHEL7 COMMIT] ms/pvpanic: Set high notifier priority

Konstantin Khorenko khorenko at virtuozzo.com
Tue Nov 17 05:00:35 PST 2015


The commit is pushed to "branch-rh7-3.10.0-229.7.2.vz7.9.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.9.10
------>
commit 75d66c8784fc1b917ab7430bcedfab8a7a421890
Author: Takashi Iwai <tiwai at suse.de>
Date:   Tue May 6 17:52:26 2014 +0200

    ms/pvpanic: Set high notifier priority
    
    ms commit: 7939831eacd81fccbd7a956b30c7bb3abb9079db
    
    https://jira.sw.ru/browse/PSBM-41189
    
    We've observed the missing pvpanic call at panic, and it turned out
    that this was blocked by the broken notifier of drm_fb_helper, where
    scheduling may be called during switching to the fb console.
    It's fairly difficult to fix the drm_fb problem and a quick fix isn't
    foreseen, a simpler solution for the missing pvpanic call would be
    just to call this earlier.
    
    In order to assure that, this patch sets a higher priority to pvpanic
    notifier_block.  Once when the issue of drm_fb is resolved, we can
    remove this priority again.
    
    Signed-off-by: Takashi Iwai <tiwai at suse.de>
    Signed-off-by: Matthew Garrett <matthew.garrett at nebula.com>
---
 drivers/platform/x86/pvpanic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/platform/x86/pvpanic.c b/drivers/platform/x86/pvpanic.c
index 47ae0c4..469e182 100644
--- a/drivers/platform/x86/pvpanic.c
+++ b/drivers/platform/x86/pvpanic.c
@@ -71,6 +71,7 @@ pvpanic_panic_notify(struct notifier_block *nb, unsigned long code,
 
 static struct notifier_block pvpanic_panic_nb = {
 	.notifier_call = pvpanic_panic_notify,
+	.priority = 1, /* let this called before broken drm_fb_helper */
 };
 
 


More information about the Devel mailing list