0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Threads shouldn't drop stopping loops

This commit is contained in:
Maria Matejka 2024-06-07 13:19:51 +02:00
parent 0fb9177374
commit bf961ba405

View File

@ -666,7 +666,6 @@ birdloop_take(struct birdloop_pickup_group *group)
struct birdloop *loop = NULL;
LOCK_DOMAIN(attrs, group->domain);
int drop =
this_thread->busy_active &&
(group->thread_busy_count < group->thread_count) &&
@ -683,7 +682,7 @@ birdloop_take(struct birdloop_pickup_group *group)
WALK_LIST2(loop, n, this_thread->loops, n)
{
birdloop_enter(loop);
if (ev_active(&loop->event))
if (ev_active(&loop->event) && !loop->stopped)
{
LOOP_TRACE(loop, DL_SCHEDULING, "Dropping from thread");
/* Pass to another thread */