]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Fix memory leak of ECDummyOp
authorAlex Ainscow <aainscow@uk.ibm.com>
Sun, 18 Jan 2026 22:13:54 +0000 (22:13 +0000)
committerAlex Ainscow <aainscow@uk.ibm.com>
Mon, 19 Jan 2026 17:28:31 +0000 (17:28 +0000)
commitcff98c4e5a3f6b48760ac57a083e0d094f64c984
tree782961181dc5cd5c41785f0459d3bd111539d820
parentcb83e64d5afc6af18d58cb5f914ad21ae754b69b
osd: Fix memory leak of ECDummyOp

Upon a pg falling idle, an ECDummy op is immediately generated.
This op causes the pg log to be committed. This op gets added to
the tid_to_op_map, however it does not get removed until the
interval ends.

The lack of remove is essentially a temporary "leak" and since the
op data structure is quite big, this can add up to significant
amounts of memory in a heavily loaded system.

The fix is simple - to add the op to the waiting list, so that it
gets cleaned up on when the op is finished.

Fixes: https://tracker.ceph.com/issues/74433
Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
(cherry picked from commit 5899535841c45468633bccd78859d28798c2fba7)
src/osd/ECCommon.cc