mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: dragos.tatulea@intel.com
To: ccross@android.com, keescook@chromium.org, tony.luck@intel.com,
	cbouatmailru@gmail.com, linux-kernel@vger.kernel.org
Cc: adrian.hunter@intel.com, octavian.purdila@intel.com,
	Dragos Tatulea <dragos.tatulea@intel.com>
Subject: [PATCH v3 8/9] pstore: max out console log level during sysfs dump switch
Date: Thu, 18 Oct 2012 14:06:06 +0300	[thread overview]
Message-ID: <1350558367-31801-9-git-send-email-dragos.tatulea@intel.com> (raw)
In-Reply-To: <1350558367-31801-1-git-send-email-dragos.tatulea@intel.com>

From: Dragos Tatulea <dragos.tatulea@intel.com>

Otherwise we might miss out on some pstore dumpers that use
printks below current log level.

Signed-off-by: Dragos Tatulea <dragos.tatulea@intel.com>
---
 fs/pstore/platform.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c
index 25f59ed..e3ad13e 100644
--- a/fs/pstore/platform.c
+++ b/fs/pstore/platform.c
@@ -267,6 +267,7 @@ static DEFINE_SPINLOCK(dbg_lock);
 static int dbg_dump(void *data, u64 val)
 {
 	unsigned long flags;
+	int saved_loglevel;
 
 	switch (val) {
 	case KMSG_DUMP_PANIC:
@@ -276,7 +277,10 @@ static int dbg_dump(void *data, u64 val)
 	case KMSG_DUMP_HALT:
 	case KMSG_DUMP_POWEROFF:
 		spin_lock_irqsave(&dbg_lock, flags);
+		saved_loglevel = console_loglevel;
+		console_loglevel =  15;
 		kmsg_dump(val);
+		console_loglevel = saved_loglevel;
 		spin_unlock_irqrestore(&dbg_lock, flags);
 		return 0;
 	}
-- 
1.7.9.5


  parent reply	other threads:[~2012-10-18 11:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-18 11:05 [PATCH v3 0/8] pstore: add interface for dumpers and add task list dumper dragos.tatulea
2012-10-18 11:05 ` [PATCH v3 1/9] pstore: add flags dragos.tatulea
2012-10-18 11:06 ` [PATCH v3 2/9] pstore: add debugfs support for causing dumps and panics dragos.tatulea
2012-11-18  1:53   ` Anton Vorontsov
2012-10-18 11:06 ` [PATCH v3 3/9] pstore: add support for external writers dragos.tatulea
2012-11-18  2:47   ` Anton Vorontsov
2012-10-18 11:06 ` [PATCH v3 4/9] pstore: allow storing different type id's in ram backend dragos.tatulea
2012-11-18  2:04   ` Anton Vorontsov
2012-10-18 11:06 ` [PATCH v3 5/9] pstore: add task list dumper dragos.tatulea
2012-11-18  2:46   ` Anton Vorontsov
2012-10-18 11:06 ` [PATCH v3 6/9] pstore: do not run timer while pstore is not mounted dragos.tatulea
2012-10-18 11:06 ` [PATCH v3 7/9] pstore: make sure pstore_write exists on flush error dragos.tatulea
2012-11-18  2:40   ` Anton Vorontsov
2012-10-18 11:06 ` dragos.tatulea [this message]
2012-11-18  2:44   ` [PATCH v3 8/9] pstore: max out console log level during sysfs dump switch Anton Vorontsov
2012-10-18 11:06 ` [PATCH v3 9/9] pstore: add android log dumping dragos.tatulea

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1350558367-31801-9-git-send-email-dragos.tatulea@intel.com \
    --to=dragos.tatulea@intel.com \
    --cc=adrian.hunter@intel.com \
    --cc=cbouatmailru@gmail.com \
    --cc=ccross@android.com \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=octavian.purdila@intel.com \
    --cc=tony.luck@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®