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
This commit is contained in:
behlendo 2008-04-14 18:37:20 +00:00
parent f23e92fabf
commit c5fd77fcbf
1 changed files with 2 additions and 4 deletions

View File

@ -68,8 +68,7 @@ mutex_enter(kmutex_t *mp)
BUG_ON(mp->km_magic != KM_MAGIC); BUG_ON(mp->km_magic != KM_MAGIC);
if (unlikely(in_atomic() && !current->exit_state)) { if (unlikely(in_atomic() && !current->exit_state)) {
dump_stack(); printk("May schedule while atomic: %s/0x%08x/%d\n",
printk("Scheduling while atomic: %s/0x%08x/%d\n",
current->comm, preempt_count(), current->pid); current->comm, preempt_count(), current->pid);
BUG(); BUG();
} }
@ -89,8 +88,7 @@ mutex_tryenter(kmutex_t *mp)
BUG_ON(mp->km_magic != KM_MAGIC); BUG_ON(mp->km_magic != KM_MAGIC);
if (unlikely(in_atomic() && !current->exit_state)) { if (unlikely(in_atomic() && !current->exit_state)) {
dump_stack(); printk("May schedule while atomic: %s/0x%08x/%d\n",
printk("Scheduling while atomic: %s/0x%08x/%d\n",
current->comm, preempt_count(), current->pid); current->comm, preempt_count(), current->pid);
BUG(); BUG();
} }