From: Or Ozeri Date: Thu, 25 Nov 2021 18:17:26 +0000 (+0200) Subject: librbd/crypto: remove unused member from ShutDownCryptoRequest X-Git-Tag: v17.1.0~358^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5de8791da71c244bdf40a7b7e7aa9dd60728fba0;p=ceph-ci.git librbd/crypto: remove unused member from ShutDownCryptoRequest m_crypto is not used - remove it. Signed-off-by: Or Ozeri --- diff --git a/src/librbd/crypto/ShutDownCryptoRequest.cc b/src/librbd/crypto/ShutDownCryptoRequest.cc index bc3e47bb11c..9277308e466 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 68142800999..cf402c1b4ea 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