]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/deep_copy: added new migrating flag to object copy 41788/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 8 Dec 2020 19:16:49 +0000 (14:16 -0500)
committerMykola Golub <mgolub@suse.com>
Wed, 9 Jun 2021 12:25:30 +0000 (15:25 +0300)
commit6c06fbc4e2547b0a402e179af0c4371bd537cbcc
tree458f247c58bf7257d2f7e80553acb2e52b2ded06
parentc0a4611ee58058fec921a69f4f2f9daebe4eda58
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)
src/librbd/deep_copy/ObjectCopyRequest.cc
src/librbd/deep_copy/Types.h
src/librbd/io/CopyupRequest.cc
src/librbd/operation/MigrateRequest.cc