]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/os/seastore: mkfs_managers() into coroutines 64812/head
authorMatan Breizman <mbreizma@redhat.com>
Wed, 30 Jul 2025 15:10:48 +0000 (15:10 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Sun, 10 Aug 2025 12:54:51 +0000 (12:54 +0000)
commit5cdbea89f2d84ce9be64342748d394fc549bc760
tree64decb606ebaf11a1d7fde4ef860bdbddbe6bde0
parentd08bb1d5cce8e073bf5d4d663ea3e1c30dc2ac66
crimson/os/seastore: mkfs_managers() into coroutines

* txn is now created only once and not in each repeated
  iteration as before, with_repeat_trans_intr will reset the txn
  if needed.

* in order for us to return a seastar::future, we would have to handle
  each and every errorator. Instead, change the return value to
  errorator and let the caller handle the error.

* The lambda which is passed to with_trans_intr returns mkfs_iertr
  since this is an extended version of base_iertr.
  Introduce a mkfs_ertr for the reason above. Future commits would
  unify the new mkfs_ertr with seastore_mkfs_ertr.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/os/seastore/seastore.cc
src/crimson/os/seastore/seastore.h
src/crimson/os/seastore/transaction_manager.h