Skip to content

umbrella: librbd/cache/pwl: cancel periodic_stats timer before perf_stop() - #70426

Merged
batrick merged 1 commit into
ceph:umbrellafrom
idryomov:wip-77501-umbrella
Aug 4, 2026
Merged

batrick merged 1 commit into
ceph:umbrellafrom
idryomov:wip-77501-umbrella

Conversation

@idryomov

Copy link
Copy Markdown
Contributor

AbstractWriteLog::shut_down() calls perf_stop(), which deletes
m_perfcounter, but the 5s periodic_stats timer is only canceled later
in the destructor. If it fires in between, periodic_stats ->
update_image_cache_state dereferences the freed m_perfcounter. Cancel
the timer under m_timer_lock first.

Destroying an AbstractWriteLog that was init()'ed without a matching
shut_down() is illegal, so the cancel_event() in the destructor is now
redundant and is dropped.

Fixes: https://tracker.ceph.com/issues/77501

Signed-off-by: Sun Yuechi <[email protected]>
(cherry picked from commit 8a35d17)
@idryomov idryomov added this to the v21.1.1 milestone Jul 22, 2026
@idryomov
idryomov requested a review from a team as a code owner July 22, 2026 09:09
@github-actions github-actions Bot added rbd releng-audit-pass Release engineering: passed backport verification audit. labels Jul 22, 2026
@yuriw

yuriw commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri14-testing-20260722.150631-umbrella.

@batrick
batrick merged commit 92d0549 into ceph:umbrella Aug 4, 2026
9 of 10 checks passed
@idryomov
idryomov deleted the wip-77501-umbrella branch August 4, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-qa rbd releng-audit-pass Release engineering: passed backport verification audit. wip-yuri14-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants