Make sure all open transactions (the ones from the cleaner especially)
get drained before we clear the device zone.
Signed-off-by: Sage Weil <sage@newdream.net>
return;
}
+ // make sure transactions flush/drain/commit (and data is all rewritten
+ // safely elsewhere) before we blow away the cleaned zone
+ _osr_drain_all();
+
// reset the device zone
dout(10) << __func__ << " resetting zone 0x" << std::hex << zone << std::dec << dendl;
bdev->reset_zone(zone);