[PATCH V9 4/9] nvmet: add ZBD over ZNS backend support
Christoph Hellwig
hch at lst.de
Mon Jan 18 13:25:15 EST 2021
On Tue, Jan 12, 2021 at 07:52:27AM +0000, Damien Le Moal wrote:
> >
> > I do not understand the logic here, given that NVMe does not have
> > conventional zones.
>
> 512e SAS & SATA SMR drives (512B logical, 4K physical) are a big thing, and for
> these, all writes in sequential zones must be 4K aligned. So I suggested to
> Chaitanya to simply use the physical block size as the LBA size for the target
> to avoid weird IO errors that would not make sense in ZNS/NVMe world (e.g. 512B
> aligned write requests failing).
But in NVMe the physical block size exposes the atomic write unit, which
could be way too large. Іf we want to do this cleanly we need to expose
a minimum sequential zone write alignment value in the block layer.
More information about the Linux-nvme
mailing list