]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd/crypto: remove unused member from ShutDownCryptoRequest 44998/head
authorOr Ozeri <oro@il.ibm.com>
Thu, 25 Nov 2021 18:17:26 +0000 (20:17 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 13 Feb 2022 15:49:58 +0000 (16:49 +0100)
m_crypto is not used - remove it.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
(cherry picked from commit 5de8791da71c244bdf40a7b7e7aa9dd60728fba0)

src/librbd/crypto/ShutDownCryptoRequest.cc
src/librbd/crypto/ShutDownCryptoRequest.h

index bc3e47bb11c3f34276000651454734e66a915af4..9277308e466afa406490fe67086060a0ddb48819 100644 (file)
@@ -30,10 +30,6 @@ ShutDownCryptoRequest<I>::ShutDownCryptoRequest(
 
 template <typename I>
 void ShutDownCryptoRequest<I>::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();
 }
 
index 68142800999d2f6e913e51e1211c05494ab88e1a..cf402c1b4eac404ba08b3ffc1863074fb41ffedd 100644 (file)
@@ -34,7 +34,6 @@ public:
 private:
     I* m_image_ctx;
     Context* m_on_finish;
-    ceph::ref_t<CryptoInterface> m_crypto;
 };
 
 } // namespace crypto