Linux block layer
 help / color / mirror / Atom feed
From: Damien Le Moal <dlemoal@kernel.org>
To: Alberto Faria <afaria@redhat.com>,
	Johannes Thumshirn <johannes.thumshirn@wdc.com>
Cc: linux-block@vger.kernel.org, virtualization@lists.linux.dev,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Jens Axboe" <axboe@kernel.dk>,
	"Eugenio Pérez" <eperezma@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Stefan Hajnoczi" <stefanha@redhat.com>,
	"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
	"Jason Wang" <jasowangio@gmail.com>
Subject: Re: [PATCH v3 1/2] virtio_blk: add fua write support
Date: Thu, 26 Nov 2026 07:03:14 +0900	[thread overview]
Message-ID: <6c33dae1-2f63-4583-b322-bc4c4139e25c@kernel.org> (raw)
In-Reply-To: <CAELaAXwH8-gn+nuD96gDSeKZMgKZjX22Q-hVywXbQL8si6S1Pw@mail.gmail.com>

On 11/25/26 18:16, Alberto Faria wrote:
> On Wed, Nov 25, 2026 at 9:07 AM Johannes Thumshirn
> <johannes.thumshirn@wdc.com> 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

  reply	other threads:[~2026-11-25 22:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  8:39 [PATCH v3 0/2] virtio_blk: add FUA write support Alberto Faria
2026-11-25  8:39 ` [PATCH v3 1/2] virtio_blk: add fua " Alberto Faria
2026-11-25  9:07   ` Johannes Thumshirn
2026-11-25  9:16     ` Alberto Faria
2026-11-25 22:03       ` Damien Le Moal [this message]
2026-11-25  9:09   ` Damien Le Moal
2026-11-25 16:44   ` Stefan Hajnoczi
2026-11-25  8:39 ` [PATCH v3 2/2] vdpa_sim_blk: add support for FUA writes Alberto Faria
2026-11-25 16:44   ` Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6c33dae1-2f63-4583-b322-bc4c4139e25c@kernel.org \
    --to=dlemoal@kernel.org \
    --cc=afaria@redhat.com \
    --cc=axboe@kernel.dk \
    --cc=eperezma@redhat.com \
    --cc=jasowangio@gmail.com \
    --cc=johannes.thumshirn@wdc.com \
    --cc=linux-block@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=stefanha@redhat.com \
    --cc=virtualization@lists.linux.dev \
    --cc=xuanzhuo@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox