From: Samuel Just Date: Tue, 26 May 2020 18:15:42 +0000 (-0700) Subject: crimson/os/seastore/cache.h: actually call complete_load X-Git-Tag: v16.1.0~2167^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8cc9f40ea1592ee71ae1c68773de23febacbdee8;p=ceph.git crimson/os/seastore/cache.h: actually call complete_load Signed-off-by: Samuel Just --- diff --git a/src/crimson/os/seastore/cache.h b/src/crimson/os/seastore/cache.h index 3007ba6d2294a..a0360109fa882 100644 --- a/src/crimson/os/seastore/cache.h +++ b/src/crimson/os/seastore/cache.h @@ -196,6 +196,7 @@ public: length, ref->get_bptr()).safe_then( [ref=std::move(ref)]() mutable { + ref->on_clean_read(); ref->complete_io(); return get_extent_ertr::make_ready_future>( std::move(ref)); diff --git a/src/crimson/os/seastore/cached_extent.h b/src/crimson/os/seastore/cached_extent.h index 463f5eeae595f..4f40a3ecd2860 100644 --- a/src/crimson/os/seastore/cached_extent.h +++ b/src/crimson/os/seastore/cached_extent.h @@ -80,6 +80,16 @@ public: */ virtual void on_initial_write() {} + /** + * on_clean_read + * + * Called after read of initially written extent. + * State will be CLEAN. Implentation may use this + * call to fixup the buffer with the newly available + * absolute get_paddr(). + */ + virtual void on_clean_read() {} + /** * on_delta_write *