]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/zns: ZNSSegmentManager::release() should reset the zone.
authorAravind Ramesh <Aravind.Ramesh@wdc.com>
Thu, 18 Aug 2022 09:06:48 +0000 (14:36 +0530)
committerAravind <aravind.ramesh@wdc.com>
Fri, 2 Sep 2022 05:07:05 +0000 (10:37 +0530)
commit9675c48d90627971c4ce94da3302fdcf9c63f8e5
tree2267ec30ecd581b9aae926926010522e434aa325
parent839db06fe4a7649ef2304ab577b797cccaa874b7
crimson/zns: ZNSSegmentManager::release() should reset the zone.

For a ZNS device, a open/full zone has to be reset before it can be
reused to write from start. Seastore releases a segment/zone and marks
it empty and expects to be able to write to it from start. So as a part
of release reset the zone, so it moves to empty state on the device.

Signed-off-by: Aravind Ramesh <aravind.ramesh@wdc.com>
src/crimson/os/seastore/segment_manager/zns.cc