]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Wed, 15 May 2019 20:05:16 +0000 (16:05 -0400)
commit69fbdeacd3c896da8046b2b5e20ae398910be0da
tree4d065cc53b6de5e11892d5a14beb7ec120efdcb0
parentc9c1a8123f2879ac865b3eb3c42b38aa503b2c91
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>
(cherry picked from commit 89cfa6c8d328b9294c7f7efd53d82edcec59e66d)
src/librbd/deep_copy/ObjectCopyRequest.cc
src/librbd/deep_copy/ObjectCopyRequest.h