Project

General

Profile

Actions

Bug #79548

closed
YS YS

librbd/cache/pwl: arm periodic stats timer only after init succeeds

Bug #79548: librbd/cache/pwl: arm periodic stats timer only after init succeeds

Added by Yuechi Sun 4 months ago. Updated 3 months ago.

Status:
Backporting
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid,tentacle,umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Fixed In:
v21.3.0-2534-g2c57b1df3d
Released In:
Upkeep Timestamp:
2026-08-27T18:46:41+00:00

Description

If an init step fails after pwl_init() armed the stats timer,
InitRequest deletes the image cache without shut_down(), so the
self-rearming timer callback keeps firing on the freed object.

Arm the timer after write_image_cache_state() completes instead: on
failure paths it is never armed, and any later teardown goes through
shut_down(), which cancels it.


Related issues 3 (3 open — 0 closed)

Copied to Ceph - Backport #79746: squid: librbd/cache/pwl: arm periodic stats timer only after init succeedsNew

Actions
Copied to Ceph - Backport #79747: umbrella: librbd/cache/pwl: arm periodic stats timer only after init succeedsNew

Actions
Copied to Ceph - Backport #79748: tentacle: librbd/cache/pwl: arm periodic stats timer only after init succeedsNew

Actions

ID Updated by Ilya Dryomov 4 months ago Actions #1

  • Status changed from New to Fix Under Review
  • Assignee set to Yuechi Sun
  • Backport set to squid,tentacle,umbrella

UB Updated by Upkeep Bot 3 months ago Actions #2

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to 2c57b1df3dbaebea6e45229e0b9b190c76c1b8cd
  • Fixed In set to v21.3.0-2534-g2c57b1df3d
  • Upkeep Timestamp set to 2026-08-23T17:48:26+00:00

UB Updated by Upkeep Bot 3 months ago Actions #3

  • Copied to Backport #79746: squid: librbd/cache/pwl: arm periodic stats timer only after init succeeds added

UB Updated by Upkeep Bot 3 months ago Actions #4

  • Copied to Backport #79747: umbrella: librbd/cache/pwl: arm periodic stats timer only after init succeeds added

UB Updated by Upkeep Bot 3 months ago Actions #5

  • Copied to Backport #79748: tentacle: librbd/cache/pwl: arm periodic stats timer only after init succeeds added

UB Updated by Upkeep Bot 3 months ago Actions #6

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #7

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-08-23T17:48:26+00:00 to 2026-08-27T18:46:41+00:00
Actions

Also available in: PDF Atom