On 11/25/26 18:16, Alberto Faria wrote: > On Wed, Nov 25, 2026 at 9:07 AM Johannes Thumshirn > <[email protected]> wrote: >> On 11/25/26 9:39 AM, Alberto Faria wrote: >>> + /* >>> + * Do not advertise FUA when the device is zoned, since we >>> + * would not be able to handle it on REQ_OP_ZONE_APPEND. >>> + */ >>> + if (virtio_has_feature(vdev, VIRTIO_BLK_F_REQ_FLAGS) && >>> + virtio_has_feature(vdev, VIRTIO_BLK_F_REQ_FLAGS_OUT_FUA) && >>> + !(lim.features & BLK_FEAT_ZONED)) >>> + lim.features |= BLK_FEAT_FUA; >>> + >> >> Can you elaborate why? > > The virtio spec currently only defines FUA for OUT requests, so there > would be no way to pass on the REQ_FUA to the device on a zone append.
Still very confused. What does OUT requests mean ? Is it the data transfer direction (device to host)? If yes and an OUT request indicates a "read", then why single out zone append? Why not all write commands? If on the other hand this flags indicates that the command cdb is one way only and cannot return data (e.g. the written location that zone append returns), then OK, I understand. But the comment should clarify that. -- Damien Le Moal Western Digital Research
