]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async/Timeout: always round up 60265/head
authorMax Kellermann <max.kellermann@ionos.com>
Fri, 11 Oct 2024 14:15:28 +0000 (16:15 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Tue, 22 Oct 2024 10:22:09 +0000 (12:22 +0200)
commitc2d192f527ba2ada103a3c3234f90c1e30118d98
tree9ed8a0dff534b5b69d978b38228d746901b8e30f
parent32dcaa949d780284e9f8d1fcf249310094f4b728
msg/async/Timeout: always round up

Currently, we always round down, which has a bad side effect: when a
timer comes closer, we have lots of early wakeups, and eventually
we'll run into a busy loop (timeout=0) when the timeout is less than
one millisecond; the process will remain this busy loop for one
millisecond, wasting lots of CPU time.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/msg/async/Timeout.h