PG::activate() can make lots of changes, most notably clean_up_local()
which deletes lots of local objects. Those changes need to be flushed
to the fs before we start servicing requests or else we risk processing a
client read on those objects.
Fixes: #1974
Signed-off-by: Sage Weil <sage@newdream.net>
update_stats();
}
+ // flush this all out (e.g., deletions from clean_up_local) to avoid
+ // subsequent races.
+ osr.flush();
+
// waiters
if (!is_replay()) {
osd->requeue_ops(this, waiting_for_active);