]> git.apps.os.sepia.ceph.com Git - ceph.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, 19 Feb 2021 15:32:38 +0000 (10:32 -0500)
commite762a66c700fea8124c53e41b2f610af299dc261
tree3b5e0aec1ade8c0a7c5ed440b4cf7d25bf21556d
parentbf0d6f66ee442388c66f786f80f35aee502b20ac
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>
(cherry picked from commit 1baba64e213cb808804796575d3f7969cf37a3c6)

Conflicts:
src/librbd/deep_copy/ObjectCopyRequest.cc: trivial resolution
src/librbd/deep_copy/ObjectCopyRequest.cc
src/librbd/deep_copy/Types.h
src/librbd/io/CopyupRequest.cc
src/librbd/operation/MigrateRequest.cc