<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25800">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tbf: Drop pending polls during free also on states != ASSIGN<br><br>The situation holds true as long as the assignment is resolved. Hence,<br>it can also happen that the TBF is in RELEASE state, because it was<br>unable to do the assignment (and after retrying, MAX_N3105 moved it into<br>RELEASING).<br>Let's not explicitly check states, the other conditions should be<br>enough.<br><br>Related: SYS#5647<br>Change-Id: I05fb0ea44aeb3fbda9e8e1c449e9366efaa2c511<br>---<br>M src/tbf.cpp<br>1 file changed, 6 insertions(+), 5 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/00/25800/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/tbf.cpp b/src/tbf.cpp</span><br><span>index 0331a80..2343862 100644</span><br><span>--- a/src/tbf.cpp</span><br><span>+++ b/src/tbf.cpp</span><br><span>@@ -245,11 +245,12 @@</span><br><span> </span><br><span>    /* During assignment (state=ASSIGN), tbf may be temporarily using</span><br><span>     * tbf->control_ts from a previous TBF/SBA to transmit the UL/DL</span><br><span style="color: hsl(0, 100%, 40%);">-      * Assignment, which may not be necessarly be a TS where the current TBF</span><br><span style="color: hsl(0, 100%, 40%);">-         * is attached to. Hence, we may have ULC pollings ongoing and we need</span><br><span style="color: hsl(0, 100%, 40%);">-   * to make sure we drop all reserved nodes there: */</span><br><span style="color: hsl(0, 100%, 40%);">-    if (tbf_state(tbf) == TBF_ST_ASSIGN &&</span><br><span style="color: hsl(0, 100%, 40%);">-      tbf->control_ts != TBF_CONTROL_TS_UNSET && !tbf->pdch[tbf->control_ts])</span><br><span style="color: hsl(120, 100%, 40%);">+   * Assignment, which may not be necessarily be a TS where the current TBF</span><br><span style="color: hsl(120, 100%, 40%);">+      * is attached to. This will be the case until a TBF receives proper</span><br><span style="color: hsl(120, 100%, 40%);">+   * confirmation from the MS and goes through the FLOW state. Hence, we</span><br><span style="color: hsl(120, 100%, 40%);">+         * may have ULC pollings ongoing and we need to make sure we drop all</span><br><span style="color: hsl(120, 100%, 40%);">+  * reserved nodes there: */</span><br><span style="color: hsl(120, 100%, 40%);">+   if (tbf->control_ts != TBF_CONTROL_TS_UNSET && !tbf->pdch[tbf->control_ts])</span><br><span>                 pdch_ulc_release_tbf(tbf->trx->pdch[tbf->control_ts].ulc, tbf);</span><br><span> </span><br><span>         /* Now simply detach from all attached PDCHs */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25800">change 25800</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/c/osmo-pcu/+/25800"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I05fb0ea44aeb3fbda9e8e1c449e9366efaa2c511 </div>
<div style="display:none"> Gerrit-Change-Number: 25800 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>