[PATCH] osmo-bts[master]: bts: revert trx shutdown order

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

dexter gerrit-no-reply at lists.osmocom.org
Mon Mar 6 15:26:22 UTC 2017


Review at  https://gerrit.osmocom.org/1977

bts: revert trx shutdown order

The BTS Transcievers are stored in a linked list. When the BTS
is shut down, the rf is disabled and the trx is then closed.
this patch reverts the order of the list processing.

Change-Id: I18485de586b402610f9e98053d69e92bc9b18dc2
---
M src/common/bts.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/77/1977/1

diff --git a/src/common/bts.c b/src/common/bts.c
index 9915e1c..6fceaae 100644
--- a/src/common/bts.c
+++ b/src/common/bts.c
@@ -207,7 +207,7 @@
 	LOGP(DOML, LOGL_NOTICE, "Shutting down BTS %u, Reason %s\n",
 		bts->nr, reason);
 
-	llist_for_each_entry(trx, &bts->trx_list, list) {
+	llist_for_each_entry_reverse(trx, &bts->trx_list, list) {
 		bts_model_trx_deact_rf(trx);
 		bts_model_trx_close(trx);
 	}

-- 
To view, visit https://gerrit.osmocom.org/1977
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I18485de586b402610f9e98053d69e92bc9b18dc2
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: dexter <pmaier at sysmocom.de>



More information about the gerrit-log mailing list