diff options
author | Harald Welte <laforge@osmocom.org> | 2022-05-06 15:41:51 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-05-09 17:50:38 +0200 |
commit | 712a6647b1b3f397aa624fb50a1bac42550e9321 (patch) | |
tree | 6475d4b84d23da08350e7874070824651e05b191 /include/osmocom/bsc/paging.h | |
parent | 52b910ebbdbeca5a423bdeb5bfa08a74f253ce23 (diff) |
paging: Avoid queueing more than 60 second estimated requests
Reaching this point will only make system load (CPU, mem) grow, making
it hard for the process to keep up with work to do, with no benefit
since the requests will anyway be scheduled too late.
Related: SYS#5922
Change-Id: I6523c6816a4d16b71084d004e979be40cf0aeeb0
Diffstat (limited to 'include/osmocom/bsc/paging.h')
-rw-r--r-- | include/osmocom/bsc/paging.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/bsc/paging.h b/include/osmocom/bsc/paging.h index 9eddda0c7..819f47827 100644 --- a/include/osmocom/bsc/paging.h +++ b/include/osmocom/bsc/paging.h @@ -101,6 +101,8 @@ struct gsm_paging_request { struct gsm_bts_paging_state { /* pending requests */ struct llist_head pending_requests; + /* Number of requests in pending_requests_len */ + unsigned int pending_requests_len; struct gsm_bts *bts; struct osmo_timer_list work_timer; |