]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd/pg: Handle peer replies handling once received
authorMatan Breizman <mbreizma@redhat.com>
Wed, 5 Mar 2025 15:58:12 +0000 (15:58 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 6 Mar 2025 09:34:49 +0000 (09:34 +0000)
commit7462b1c06e375e57f1d8ff0c5a07c2ce3e53d982
tree9f5037cf9b3ae21196f5f82b3fcb0ade0ecb3dc7
parent522cc6c3c415c3caece54dd1e111643072af52a2
crimson/osd/pg: Handle peer replies handling once received

Instead of updating last complete on disk and calling complete_write
in PG::submit_transacion (chained to all_completed).

Move the completion handling earlier as soon as all the peers acked.
This essentially means that we move the handling to
ReplicatedBackend::get_rep_op_reply, unless replication size is 1 -
then we would mark completion in ReplicatedBackend::submit_transaction.

Fixes: https://tracker.ceph.com/issues/69439
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/osd/pg.cc
src/crimson/osd/replicated_backend.cc