From 2c6cd08547fc84a0045b3bf759f8a03cd804b418 Mon Sep 17 00:00:00 2001 From: Or Ozeri Date: Thu, 25 Nov 2021 20:17:26 +0200 Subject: [PATCH] librbd/crypto: remove unused member from ShutDownCryptoRequest m_crypto is not used - remove it. Signed-off-by: Or Ozeri (cherry picked from commit 5de8791da71c244bdf40a7b7e7aa9dd60728fba0) --- src/librbd/crypto/ShutDownCryptoRequest.cc | 4 ---- src/librbd/crypto/ShutDownCryptoRequest.h | 1 - 2 files changed, 5 deletions(-) diff --git a/src/librbd/crypto/ShutDownCryptoRequest.cc b/src/librbd/crypto/ShutDownCryptoRequest.cc index bc3e47bb11c3f..9277308e466af 100644 --- a/src/librbd/crypto/ShutDownCryptoRequest.cc +++ b/src/librbd/crypto/ShutDownCryptoRequest.cc @@ -30,10 +30,6 @@ ShutDownCryptoRequest::ShutDownCryptoRequest( template void ShutDownCryptoRequest::send() { - m_image_ctx->image_lock.lock_shared(); - m_crypto = m_image_ctx->crypto; - m_image_ctx->image_lock.unlock_shared(); - shut_down_object_dispatch(); } diff --git a/src/librbd/crypto/ShutDownCryptoRequest.h b/src/librbd/crypto/ShutDownCryptoRequest.h index 68142800999d2..cf402c1b4eac4 100644 --- a/src/librbd/crypto/ShutDownCryptoRequest.h +++ b/src/librbd/crypto/ShutDownCryptoRequest.h @@ -34,7 +34,6 @@ public: private: I* m_image_ctx; Context* m_on_finish; - ceph::ref_t m_crypto; }; } // namespace crypto -- 2.39.5