From c5fd77fcbf20f19a4690c535be494dcf474a0649 Mon Sep 17 00:00:00 2001 From: behlendo Date: Mon, 14 Apr 2008 18:37:20 +0000 Subject: [PATCH] Just cleanup up an error case to avoid overspamming the console. We get the stack once from the BUG() no reason to dump it twice. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@72 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c --- include/sys/mutex.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/sys/mutex.h b/include/sys/mutex.h index ca76d6ea9b..068fde1abd 100644 --- a/include/sys/mutex.h +++ b/include/sys/mutex.h @@ -68,8 +68,7 @@ mutex_enter(kmutex_t *mp) BUG_ON(mp->km_magic != KM_MAGIC); if (unlikely(in_atomic() && !current->exit_state)) { - dump_stack(); - printk("Scheduling while atomic: %s/0x%08x/%d\n", + printk("May schedule while atomic: %s/0x%08x/%d\n", current->comm, preempt_count(), current->pid); BUG(); } @@ -89,8 +88,7 @@ mutex_tryenter(kmutex_t *mp) BUG_ON(mp->km_magic != KM_MAGIC); if (unlikely(in_atomic() && !current->exit_state)) { - dump_stack(); - printk("Scheduling while atomic: %s/0x%08x/%d\n", + printk("May schedule while atomic: %s/0x%08x/%d\n", current->comm, preempt_count(), current->pid); BUG(); }