Skip to content

Commit

Permalink
reset backoff timer on non-busy-item
Browse files Browse the repository at this point in the history
apparently nothing ever reset the backoff move sleeper

also it's a little weird looking at it now... shouldn't it be doing that
at the end of each page run instead of every individual busy item?

oh well, at least it won't get stuck forever at 1ms now.
  • Loading branch information
dormando committed Dec 3, 2024
1 parent a8533d5 commit 438cf63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slabs_mover.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,8 @@ static void *slab_rebalance_thread(void *arg) {
backoff_timer = backoff_timer * 2;
if (backoff_timer > backoff_max)
backoff_timer = backoff_max;
} else {
backoff_timer = 1;
}
}
} else {
Expand Down

0 comments on commit 438cf63

Please sign in to comment.