]> git.ipfire.org Git - thirdparty/qemu.git/commit
block/blkio: use FUA flag on write zeroes only if supported
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 8 Aug 2024 08:05:45 +0000 (10:05 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 12 Sep 2024 06:20:33 +0000 (09:20 +0300)
commit4ecd282adc98c6f81315d7c0f98c68e0b0ee0b44
treeed76ca49de30b2472c1c8d86eccba0dca55db697
parentb2ebf375c03e06321797e16b84d09768d7ce21b9
block/blkio: use FUA flag on write zeroes only if supported

libblkio supports BLKIO_REQ_FUA with write zeros requests only since
version 1.4.0, so let's inform the block layer that the blkio driver
supports it only in this case. Otherwise we can have runtime errors
as reported in https://issues.redhat.com/browse/RHEL-32878

Fixes: fd66dbd424 ("blkio: add libblkio block driver")
Cc: qemu-stable@nongnu.org
Buglink: https://issues.redhat.com/browse/RHEL-32878
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20240808080545.40744-1-sgarzare@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 547c4e50929ec6c091d9c16a7b280e829b12b463)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: meson.build fixup for the lack of
 v8.0.0-1489-g98b126f5e3 "qapi: add '@fdset' feature for BlockdevOptionsVirtioBlkVhostVdpa")
block/blkio.c
meson.build