From 5f191d3e2faa74b5cb078e5004fbcc239c85c147 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Wed, 10 May 2023 18:00:52 +0200 Subject: [PATCH] THE PLAN MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Timeline::get calls reconstruct data ⇒ turn that into a Pin> . - Problem there: we call layer.get_reconstruct_data while holding layer map lock ⇒ it’s a std rwlock ⇒ need to turn it into a parking_lot mutex whose guards are Send - Problem there: we sometimes hold the Tenant::timelines std mutex while holding layer map lock (branching?) ⇒ need to turn it into parking_lot mutex whose guards are Send So, tackle things in reverse here.