Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pacific: common: intrusive_lru destructor add #54558

Merged
merged 2 commits into from Jan 22, 2024

Conversation

k0ste
Copy link
Contributor

@k0ste k0ste commented Nov 18, 2023

backport tracker: https://tracker.ceph.com/issues/57794


backport of #48128
parent tracker: https://tracker.ceph.com/issues/57573

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

@github-actions github-actions bot added this to the pacific milestone Nov 18, 2023
Signed-off-by: Ali Maredia <amaredia@redhat.com>
(cherry picked from commit b3b28a4)
values created during inserts that are
unreferenced are not deleted because evict()
does not delete values unless set.size() > lru_target_size.

For example, this condition is not met if the number
of entries in the intrusive_lru are less than or
equal to lru_target_size at the time of the
intrusive_lru's destruction.

Memory leaks due to the above scenario can be
reproduced if this commit is removed and
unittest_intrusive_lru is run under valgrind.

ex:

valgrind --tool=memcheck --leak-check=yes ./bin/unittest_intrusive_lru

Signed-off-by: Ali Maredia <amaredia@redhat.com>
(cherry picked from commit abd84ad)
@ljflores
Copy link
Contributor

ljflores commented Jan 10, 2024

If this is a must for 16.2.15, please add it to https://github.com/ceph/ceph/milestone/17 since Pacific is going EOL.

@ljflores
Copy link
Contributor

@k0ste ^

@k0ste
Copy link
Contributor Author

k0ste commented Jan 10, 2024

If this is a must for 16.2.15, please add it to https://github.com/ceph/ceph/milestone/17 since Pacific is going EOL.

Only developers can edit labels and milestones, I'm not

@idryomov idryomov modified the milestones: pacific, v16.2.15 Jan 17, 2024
@yuriw yuriw merged commit 62db5ac into ceph:pacific Jan 22, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants