We already block access to it, but it needs to be in the cache
for a concurrent transaction to see it and block appropriately.
Signed-off-by: Samuel Just <sjust@redhat.com>
ref->set_io_wait();
ref->set_paddr(offset);
ref->state = CachedExtent::extent_state_t::CLEAN;
+ add_extent(ref);
return segment_manager.read(
offset,
ref->on_clean_read();
ref->complete_io();
- add_extent(ref);
return get_extent_ertr::make_ready_future<TCachedExtentRef<T>>(
std::move(ref));
},