Thread (15 messages) 15 messages, 6 authors, 2021-04-20

Re: [PATCH v2 3/3] zonefs: fix synchronous write to sequential zone files

From: Damien Le Moal <hidden>
Date: 2021-04-19 07:08:51
Also in: dm-devel, linux-fsdevel, linux-nvme, linux-scsi

On 2021/04/19 15:45, Christoph Hellwig wrote:
On Sat, Apr 17, 2021 at 11:33:23AM +0900, Damien Le Moal wrote:
quoted
Synchronous writes to sequential zone files cannot use zone append
operations if the underlying zoned device queue limit
max_zone_append_sectors is 0, indicating that the device does not
support this operation. In this case, fall back to using regular write
operations.
Zone append is a mandatory feature of the zoned device API.
Yes, I am well aware of that. All physical zoned devices and null blk do support
zone append, but the logical device created by dm-crypt is out. And we cannot
simply disable zone support in dm-crypt as there are use cases out there in the
field that I am aware of, in SMR space.

So this series is a compromise: preserve dm-crypt zone support for SMR (no one
uses the zone append emulation yet, as far as I know) by disabling zone append.

For zonefs, we can:
1) refuse to mount if ZA is disabled, same as btrfs
2) Do as I did in the patch, fallback to regular writes since that is easy to do
(zonefs file size tracks the WP position already).

I chose option (2) to allow for SMR+dm-crypt to still work with zonefs.


-- 
Damien Le Moal
Western Digital Research
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help