]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
nvmeof: refactor timer for exact frequency timing with drift correction 66536/head
authorAlexander Indenbaum <aindenba@redhat.com>
Mon, 20 Oct 2025 09:00:04 +0000 (12:00 +0300)
committerAlexander Indenbaum <aindenba@redhat.com>
Fri, 5 Dec 2025 13:00:21 +0000 (15:00 +0200)
commit411a493a0cdbdd8b3f3a2b1fb8b06453422a0210
treea5380fc6cc8f5b80fe36edaebb70e451e4ec4681
parent36bf390092265661b9287c585635940de65969a6
nvmeof: refactor timer for exact frequency timing with drift correction

- Replace relative timing with absolute time calculation to prevent drift
- Implement drift detection and correction mechanism
- Add comprehensive logging for timer firing, execution duration, drift
  and rescheduling

This refactoring ensures the nvmeof monitor client maintains exact frequency
timing over long periods, even when individual tick executions are delayed.

Signed-off-by: Alexander Indenbaum <aindenba@redhat.com>
(cherry picked from commit ccd20243e4d698c393cb7623874e1fa6bf142faa)
src/nvmeof/NVMeofGwMonitorClient.cc
src/nvmeof/NVMeofGwMonitorClient.h