]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main/cdr.c: Alleviate CDR deadlock
authorMatthew Fredrickson <creslin@digium.com>
Thu, 21 Jun 2018 05:28:01 +0000 (00:28 -0500)
committerJoshua Colp <jcolp@digium.com>
Fri, 29 Jun 2018 15:46:17 +0000 (09:46 -0600)
commit33f4716d13614665e42b659f0d8b18356d486e05
treed9fdbae90b59c684363e977e17ec0cf1f21fe505
parent6b6fa461d659731aa3deea62e2022e6c3965646c
main/cdr.c: Alleviate CDR deadlock

There is a rare case (do to the infrequent timing involved) where
CDR submission threads in batch mode can deadlock with a currently
running CDR batch process.  This patch should remove the need for
holding the lock in the scheduler and should clean a few code
paths up that inconsistently submitted new work to the CDR batch
processor.

ASTERISK-27909

Change-Id: I6333e865db7c593c102c2fd948cecdb96481974d
Reported-by: Denis Lebedev
main/cdr.c