Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1370345

Re: [PATCH v4 5/5] printk/nmi: flush NMI messages on the system panic

From Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v4 5/5] printk/nmi: flush NMI messages on the system panic
Date 2016-04-04 07:00 +0200
Message-ID <rk4Mi-6fk-3@gated-at.bofh.it> (permalink)
References <riqHh-7AW-21@gated-at.bofh.it> <rirjZ-87s-33@gated-at.bofh.it> <riK3g-531-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

On (03/31/16 14:36), Petr Mladek wrote:
[..]
>  #ifdef CONFIG_PRINTK_NMI
> +#define deferred_console_in_nmi() in_nmi()
>  #else
> +#define deferred_console_in_nmi() 0
[..]
> +	if (!in_sched && !deferred_console_in_nmi()) {
>  		lockdep_off();
>  		/*
>  		 * Try to acquire and then immediately release the console

or use SCHED level for nmi messages instead of defining deferred_console_in_nmi()?
so !in_sched will work for both SCHED and NMI messages.

	-ss

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v4 0/5] Cleaning printk stuff in NMI context Petr Mladek <pmladek@suse.com> - 2016-03-30 18:00 +0200
  [PATCH v4 3/5] printk/nmi: warn when some message has been lost in NMI context Petr Mladek <pmladek@suse.com> - 2016-03-30 18:00 +0200
  [PATCH v4 5/5] printk/nmi: flush NMI messages on the system panic Petr Mladek <pmladek@suse.com> - 2016-03-30 18:00 +0200
    Re: [PATCH v4 5/5] printk/nmi: flush NMI messages on the system panic kbuild test robot <lkp@intel.com> - 2016-03-30 18:40 +0200
      Re: [PATCH v4 5/5] printk/nmi: flush NMI messages on the system panic Petr Mladek <pmladek@suse.com> - 2016-03-31 14:40 +0200
        Re: [PATCH v4 5/5] printk/nmi: flush NMI messages on the system panic Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2016-04-04 07:00 +0200
  [PATCH v4 4/5] printk/nmi: increase the size of NMI buffer and make it configurable Petr Mladek <pmladek@suse.com> - 2016-03-30 18:00 +0200

csiph-web