]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: wait for copyup in unaligned crypto write 37916/head
authorOr Ozeri <oro@il.ibm.com>
Thu, 29 Oct 2020 11:42:17 +0000 (13:42 +0200)
committerOr Ozeri <oro@il.ibm.com>
Wed, 4 Nov 2020 08:25:45 +0000 (10:25 +0200)
commit27c24d39ed00ea2273dce59d56c3540c93be2a4f
treeb636c0d68c0d7b3a69c2eef6361f5a1a70532ee4
parent30da5ce6c0afade20a60fe84427ad984b49367fd
librbd: wait for copyup in unaligned crypto write

librbd copyup is not built to handle unaligned encrypted writes.
Therefore, a such write should kick-off a copyup and wait for it to complete before executing.
This commit implements this logic.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
src/librbd/crypto/CryptoObjectDispatch.cc
src/librbd/io/Utils.cc
src/librbd/io/Utils.h
src/librbd/operation/FlattenRequest.cc
src/test/librbd/crypto/test_mock_CryptoObjectDispatch.cc