aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorIlya Dryomov <[email protected]>2023-06-05 16:33:35 +0200
committerIlya Dryomov <[email protected]>2023-06-06 09:54:27 +0200
commit870611e4877eff1e8413c3fb92a585e45d5291f6 (patch)
tree54a8e9aea9dfa6a34def7337360627fca4890f3b /lib/mpi/mpiutil.c
parent09fe05c57b5aaf23e2c35036c98ea9f282b19a77 (diff)
rbd: get snapshot context after exclusive lock is ensured to be held
Move capturing the snapshot context into the image request state machine, after exclusive lock is ensured to be held for the duration of dealing with the image request. This is needed to ensure correctness of fast-diff states (OBJECT_EXISTS vs OBJECT_EXISTS_CLEAN) and object deltas computed based off of them. Otherwise the object map that is forked for the snapshot isn't guaranteed to accurately reflect the contents of the snapshot when the snapshot is taken under I/O. This breaks differential backup and snapshot-based mirroring use cases with fast-diff enabled: since some object deltas may be incomplete, the destination image may get corrupted. Cc: [email protected] Link: https://tracker.ceph.com/issues/61472 Signed-off-by: Ilya Dryomov <[email protected]> Reviewed-by: Dongsheng Yang <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions