mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 07:37:29 +00:00
Merge pull request #16239 from FRRouting/mergify/bp/dev/10.1/pr-16224
zebra: Prevent starvation in dplane_thread_loop (backport #16224)
This commit is contained in:
commit
13460af422
@ -7441,6 +7441,11 @@ static void dplane_thread_loop(struct event *event)
|
|||||||
zlog_debug("dplane dequeues %d completed work from provider %s",
|
zlog_debug("dplane dequeues %d completed work from provider %s",
|
||||||
counter, dplane_provider_get_name(prov));
|
counter, dplane_provider_get_name(prov));
|
||||||
|
|
||||||
|
if (event_should_yield(event)) {
|
||||||
|
reschedule = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
/* Locate next provider */
|
/* Locate next provider */
|
||||||
prov = dplane_prov_list_next(&zdplane_info.dg_providers, prov);
|
prov = dplane_prov_list_next(&zdplane_info.dg_providers, prov);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user