]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cache: invalidate transaction referencing retired extents
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 28 Jun 2021 13:32:21 +0000 (21:32 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Thu, 1 Jul 2021 02:13:07 +0000 (10:13 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/cache.cc

index 908600341a0c7a694926e039762348d90db69cee..cb227e0cfe176a35798a48cab3becf8e523e1cb4 100644 (file)
@@ -125,7 +125,8 @@ void Cache::retire_extent(CachedExtentRef ref)
   remove_from_dirty(ref);
   ref->dirty_from_or_retired_at = JOURNAL_SEQ_MAX;
   retired_extent_gate.add_extent(*ref);
-  ref->state = CachedExtent::extent_state_t::INVALID;
+
+  invalidate(*ref);
 }
 
 void Cache::replace_extent(CachedExtentRef next, CachedExtentRef prev)