Skip to content

Commit

Permalink
Merge pull request #16239 from FRRouting/mergify/bp/dev/10.1/pr-16224
Browse files Browse the repository at this point in the history
zebra: Prevent starvation in dplane_thread_loop (backport #16224)
  • Loading branch information
ton31337 authored Jun 25, 2024
2 parents ecf1bc0 + 6d1023a commit 13460af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zebra/zebra_dplane.c
Original file line number Diff line number Diff line change
Expand Up @@ -7441,6 +7441,11 @@ static void dplane_thread_loop(struct event *event)
zlog_debug("dplane dequeues %d completed work from provider %s",
counter, dplane_provider_get_name(prov));

if (event_should_yield(event)) {
reschedule = true;
break;
}

/* Locate next provider */
prov = dplane_prov_list_next(&zdplane_info.dg_providers, prov);
}
Expand Down

0 comments on commit 13460af

Please # to comment.