[svn-commits] sruffell: linux/trunk r6771 - /linux/trunk/drivers/dahdi/dahdi_dynamic.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jun 26 12:22:50 CDT 2009


Author: sruffell
Date: Fri Jun 26 12:22:45 2009
New Revision: 6771

URL: http://svn.asterisk.org/svn-view/dahdi?view=rev&rev=6771
Log:
dahdi_dynamic: Release the dlock before calling accross modules.

Resolves a hard lock due to a recursive spinlock grab at startup.

Reported by: mapacheco
(closes issue #15210)

Modified:
    linux/trunk/drivers/dahdi/dahdi_dynamic.c

Modified: linux/trunk/drivers/dahdi/dahdi_dynamic.c
URL: http://svn.asterisk.org/svn-view/dahdi/linux/trunk/drivers/dahdi/dahdi_dynamic.c?view=diff&rev=6771&r1=6770&r2=6771
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi_dynamic.c (original)
+++ linux/trunk/drivers/dahdi/dahdi_dynamic.c Fri Jun 26 12:22:45 2009
@@ -239,7 +239,9 @@
 			dahdi_receive(&z->span);
 			dahdi_transmit(&z->span);
 			/* Handle all transmissions now */
+			spin_unlock_irqrestore(&dlock, flags);
 			ztd_sendmessage(z);
+			spin_lock_irqsave(&dlock, flags);
 		}
 		z = z->next;
 	}




More information about the svn-commits mailing list