From: Xuehan Xu Date: Mon, 18 Mar 2024 09:24:02 +0000 (+0800) Subject: crimson/os/seastore/cached_extent: add comments to elaborate why X-Git-Tag: v19.1.1~365^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f28a391d7fbe22857c819455e3dd235bbf16627f;p=ceph.git crimson/os/seastore/cached_extent: add comments to elaborate why MUTATION_PENDING and under-io extents are "stable" Signed-off-by: Xuehan Xu (cherry picked from commit b1c59ca077597e14a053d47d4961b12ba7a2a1b0) --- diff --git a/src/crimson/os/seastore/cached_extent.h b/src/crimson/os/seastore/cached_extent.h index 18ddbd95796c..730a0ace9a0b 100644 --- a/src/crimson/os/seastore/cached_extent.h +++ b/src/crimson/os/seastore/cached_extent.h @@ -426,6 +426,9 @@ public: /// Returns true if extent is stable and shared among transactions bool is_stable() const { return is_stable_written() || + // MUTATION_PENDING and under-io extents are to-be-stable extents, + // for the sake of caveats that checks the correctness of extents + // states, we consider them stable. (is_mutation_pending() && is_pending_io()); }