Skip to content

rbd: Fix connection leak when a non-nil volume is returned (backport #6432) - #6440

Open
mergify[bot] wants to merge 2 commits into
release-v3.17from
mergify/bp/release-v3.17/pr-6432
Open

rbd: Fix connection leak when a non-nil volume is returned (backport #6432)#6440
mergify[bot] wants to merge 2 commits into
release-v3.17from
mergify/bp/release-v3.17/pr-6432

Conversation

@mergify

@mergify mergify Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Describe what this PR does

This patch calls Destroy on the non-nil Volume/Snap object so that conn pool GC can clean it up.

Not doing this always kept ref count > 0, preventing cleanup and leading to lock contention, which in turn kicked in librbd lock breaking leading to blacklisting of actual clients.


This is an automatic backport of pull request #6432 done by [Mergify](https://mergify.com).

This patch calls `Destroy` on the non-nil Volume/Snap object
so that conn pool GC can clean it up.

Not doing this always kept ref count > 0, preventing cleanup and
leading to lock contention, which in turn kicked in librbd lock
breaking leading to blacklisting of actual clients.

Signed-off-by: Niraj Yadav <niryadav@redhat.com>
(cherry picked from commit 7ef770a)
Signed-off-by: Niraj Yadav <niryadav@redhat.com>
(cherry picked from commit 6148377)
@mergify mergify Bot added ok-to-test Label to trigger E2E tests component/rbd Issues related to RBD labels Jul 30, 2026
@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.33

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.34

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.35

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.33

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.34

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.35

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

/test ci/centos/mini-e2e/k8s-1.33

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

/test ci/centos/mini-e2e/k8s-1.34

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

/test ci/centos/mini-e2e/k8s-1.35

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

/test ci/centos/upgrade-tests-cephfs

@ceph-csi-bot

Copy link
Copy Markdown
Collaborator

/test ci/centos/upgrade-tests-rbd

@ceph-csi-bot ceph-csi-bot added ci/in-progress/e2e This label acts like a guard and prevents Mergify from adding the `ok-to-test` label again. and removed ok-to-test Label to trigger E2E tests labels Jul 30, 2026
@mergify mergify Bot removed the ci/in-progress/e2e This label acts like a guard and prevents Mergify from adding the `ok-to-test` label again. label Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/rbd Issues related to RBD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants