]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/os/seastore/cache: add an efficient method to check if extents are
authorXuehan Xu <xuxuehan@qianxin.com>
Fri, 14 Jun 2024 10:35:05 +0000 (18:35 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Wed, 26 Jun 2024 02:59:18 +0000 (10:59 +0800)
commit2721169f3285eb132d4a6f2792ec490c72129dd3
tree3a470ceada753f407c454fcc4c6bb3dcea505dec
parent09e06b5769683c6f8652377e2337a928a624f272
crimson/os/seastore/cache: add an efficient method to check if extents are
viewable to transactions

Instead of searching the transaction's retired_set to determine whether
an extent has been retired, we add the transaction that's retiring an
extent to that extent's retired_transactions field and search that field
to do the check. Since the probability of multiple transactions retiring
the same extent is very low, this approach should be more cpu efficient.

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/os/seastore/btree/btree_range_pin.h
src/crimson/os/seastore/cache.cc
src/crimson/os/seastore/cached_extent.h
src/crimson/os/seastore/transaction.h