]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd/deep_copy: added new migrating flag to object copy
authorJason Dillaman <dillaman@redhat.com>
Tue, 8 Dec 2020 19:16:49 +0000 (14:16 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 11 Dec 2020 13:03:07 +0000 (08:03 -0500)
commit1baba64e213cb808804796575d3f7969cf37a3c6
tree4feef2b9af78335c70aab717630fcb8e175dd8d2
parente79f6b1c157e042f57b577bc510debb21e004ea7
librbd/deep_copy: added new migrating flag to object copy

The migration operation and the copyup state machine will set
this flag when attempting to perform a deep-copy due to a
live-migration.

This flag will prevent a possible race condition between the
start of the object deep-copy when migration was enabled and
the writing portion of the deep-copy when migration might
have completed via external means.

Fixes: https://tracker.ceph.com/issues/45694
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/deep_copy/ObjectCopyRequest.cc
src/librbd/deep_copy/Types.h
src/librbd/io/CopyupRequest.cc
src/librbd/operation/MigrateRequest.cc