diff options
author | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-04-14 18:37:20 +0000 |
---|---|---|
committer | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-04-14 18:37:20 +0000 |
commit | c5fd77fcbf20f19a4690c535be494dcf474a0649 (patch) | |
tree | f69732f6840092b81fd476d4110a14405f283860 | |
parent | f23e92fabf091e3b86005e4dd194702aa8f7535d (diff) |
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
-rw-r--r-- | include/sys/mutex.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/sys/mutex.h b/include/sys/mutex.h index ca76d6ea9..068fde1ab 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(); } |