Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754331Ab2JRI0K (ORCPT ); Thu, 18 Oct 2012 04:26:10 -0400 Received: from mga09.intel.com ([134.134.136.24]:17377 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754197Ab2JRIZz (ORCPT ); Thu, 18 Oct 2012 04:25:55 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,606,1344236400"; d="scan'208";a="207552062" 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 Subject: [PATCH v2 8/8] pstore: max out console log level during sysfs dump switch Date: Thu, 18 Oct 2012 11:28:28 +0300 Message-Id: <1350548908-24407-9-git-send-email-dragos.tatulea@intel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1350548908-24407-1-git-send-email-dragos.tatulea@intel.com> References: <1350548908-24407-1-git-send-email-dragos.tatulea@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1194 Lines: 41 From: Dragos Tatulea Otherwise we might miss out on some pstore dumpers that use printks below current log level. Signed-off-by: Dragos Tatulea --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/