<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12233">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">LU: do not always invoke sub_pres_vlr_fsm_start()<br><br>sub_pres_vlr_fsm_start() starts the FSM, invokes the START event, and then this<br>FSM invariably always directly terminates when vsub->ms_not_reachable_flag ==<br>false.<br><br>So if it is false, there is not much use in instantiating a whole FSM instance<br>that just terminates again, we might as well directly issue the<br>parent-term-event and save some logging space.<br><br>The same condition is already in place in the vlr_proc_acc_fsm.c in<br>_proc_arq_vlr_node2_post_vlr() for CM Service Request and Paging Response. Now<br>also skip this for LU.<br><br>Change-Id: Id2303a795dfd381f76e94ff8ff2f495926ca8ba0<br>---<br>M src/libvlr/vlr_lu_fsm.c<br>1 file changed, 6 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/33/12233/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/libvlr/vlr_lu_fsm.c b/src/libvlr/vlr_lu_fsm.c</span><br><span>index 02e49e0..74a6939 100644</span><br><span>--- a/src/libvlr/vlr_lu_fsm.c</span><br><span>+++ b/src/libvlr/vlr_lu_fsm.c</span><br><span>@@ -413,7 +413,12 @@</span><br><span>         osmo_fsm_inst_state_chg(fi, LU_COMPL_VLR_S_WAIT_SUB_PRES,</span><br><span>                            LU_TIMEOUT_LONG, 0);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-        sub_pres_vlr_fsm_start(&lcvp->sub_pres_vlr_fsm, fi, vsub, LU_COMPL_VLR_E_SUB_PRES_COMPL);</span><br><span style="color: hsl(120, 100%, 40%);">+      /* If ms_not_reachable_flag == false, the sub_pres_vlr_fsm will anyway terminate straight away and dispatch</span><br><span style="color: hsl(120, 100%, 40%);">+    * LU_COMPL_VLR_E_SUB_PRES_COMPL to this fi, so we might as well skip that dance here and save some logging. */</span><br><span style="color: hsl(120, 100%, 40%);">+       if (vsub->ms_not_reachable_flag)</span><br><span style="color: hsl(120, 100%, 40%);">+           sub_pres_vlr_fsm_start(&lcvp->sub_pres_vlr_fsm, fi, vsub, LU_COMPL_VLR_E_SUB_PRES_COMPL);</span><br><span style="color: hsl(120, 100%, 40%);">+      else</span><br><span style="color: hsl(120, 100%, 40%);">+          osmo_fsm_inst_dispatch(fi, LU_COMPL_VLR_E_SUB_PRES_COMPL, NULL);</span><br><span> }</span><br><span> </span><br><span> static void lu_compl_vlr_new_tmsi(struct osmo_fsm_inst *fi)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12233">change 12233</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/12233"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Id2303a795dfd381f76e94ff8ff2f495926ca8ba0 </div>
<div style="display:none"> Gerrit-Change-Number: 12233 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>