]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/.../lba_manager/btree: hold a reference to parent until added to cache
authorSamuel Just <sjust@redhat.com>
Wed, 26 Aug 2020 21:49:34 +0000 (14:49 -0700)
committerSamuel Just <sjust@redhat.com>
Mon, 19 Oct 2020 22:18:14 +0000 (15:18 -0700)
commitc82610c070d35bbec099edcab35632ddaa2c5cc0
tree6e759e0b8d3f6379db1f616ac79da3e0c0947300
parentbed1b7bb304e949d36eab79aa3ce05f03aef3b67
crimson/.../lba_manager/btree: hold a reference to parent until added to cache

Currently, we need to rely on the Transaction::read_set to ensure cache
residence of a leaf node until TransactionManager adds the logical
extent to the cache.  The next patch, however, will introduce a lazy
flag for Transaction's to enable doing snapshot inconsistent scans
without populating the read_set, so we'll want this to work without
it.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.h
src/crimson/os/seastore/lba_manager/btree/btree_range_pin.h
src/crimson/os/seastore/lba_manager/btree/lba_btree_node_impl.cc