• Guilherme G. Piccoli's avatar
    um: Improve panic notifiers consistency and ordering · 758dfdb9
    Guilherme G. Piccoli authored
    Currently the panic notifiers from user mode linux don't follow
    the convention for most of the other notifiers present in the
    kernel (indentation, priority setting, numeric return).
    More important, the priorities could be improved, since it's a
    special case (userspace), hence we could run the notifiers earlier;
    user mode linux shouldn't care much with other panic notifiers but
    the ordering among the mconsole and arch notifier is important,
    given that the arch one effectively triggers a core dump.
    
    Fix that by running the mconsole notifier as the first panic
    notifier, followed by the architecture one (that coredumps).
    
    Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
    Cc: Johannes Berg <johannes@sipsolutions.net>
    Cc: Richard Weinberger <richard@nod.at>
    Signed-off-by: default avatarGuilherme G. Piccoli <gpiccoli@igalia.com>
    
    V3:
    - No changes.
    
    V2:
    - Kept the notifier header to avoid implicit usage - thanks
    Johannes for the suggestion!
    Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
    758dfdb9
mconsole_kern.c 18.6 KB