]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: deep-copy object copy should register an in-flight op
authorJason Dillaman <dillaman@redhat.com>
Mon, 1 Apr 2019 18:48:47 +0000 (14:48 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 8 Apr 2019 17:20:07 +0000 (13:20 -0400)
commit89cfa6c8d328b9294c7f7efd53d82edcec59e66d
treebc6c0d43d106b3bbf5522d71963cdec839b32914
parent0c37066797737cd7c677b2649dae1e6422869afb
librbd: deep-copy object copy should register an in-flight op

When handling live migrations, the source image is the parent
image of the destination image. To prevent the parent image from
being closed while a request is in-flight, the object copy
state machine now registers an async operation with the source
image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/deep_copy/ObjectCopyRequest.cc
src/librbd/deep_copy/ObjectCopyRequest.h