<p>George Joseph <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13527">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sig_pri:  Fix deadlock caused by sig_pri_queue_hangup<br><br>The change to add setting hangupsource to sig_pri_queue_hangup()<br>made in https://gerrit.asterisk.org/c/asterisk/+/12857 casued<br>deadlocks when a hangup request was received from the core at the<br>same time a hanguprequest was received from the remote end via the<br>D channel.<br><br>Although the PRI's channel private structure was being unlocked<br>before setting the hangupsource, the PRI's own lock was still being<br>held during the process.  If channel actions were also coming from<br>the core, a deadlock on the PRI could result.  This deadlock could<br>then escalate to the entire DAHDI subsystem via DAHDI's global<br>interface list lock, especially if someone used the PRI CLI commands.<br><br>Fix:<br><br>* We now unlock the PRI as well as the PRI's channel private<br>  structure before setting the hangupsource, then relock both<br>  afterwards.<br><br>ASTERISK-28605<br>Reported by: Dirk Wendland<br><br>Change-Id: Id74aaa5d4e3746063dbe9deed188eb65193cb9c9<br>---<br>M channels/sig_pri.c<br>1 file changed, 7 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/27/13527/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13527">change 13527</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/13527"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: Id74aaa5d4e3746063dbe9deed188eb65193cb9c9 </div>
<div style="display:none"> Gerrit-Change-Number: 13527 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>