]> granicus.if.org Git - spl/commitdiff
Just cleanup up an error case to avoid overspamming the console.
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Mon, 14 Apr 2008 18:37:20 +0000 (18:37 +0000)
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Mon, 14 Apr 2008 18:37:20 +0000 (18:37 +0000)
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

index ca76d6ea9b942f522ccc8aaf14739b266c6f4238..068fde1abd6c5a1da71b75040a7cfe1dc4028eda 100644 (file)
@@ -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();
        }