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-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F44114%2Fhead;p=ceph.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 bc3e47bb11c3..9277308e466a 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 68142800999d..cf402c1b4eac 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