mbox series

[0/2] virtio-blk: fix a few problems in ZBD-related code

Message ID 20230328022928.1003996-1-dmitry.fomichev@wdc.com (mailing list archive)
Headers show
Series virtio-blk: fix a few problems in ZBD-related code | expand

Message

Dmitry Fomichev March 28, 2023, 2:29 a.m. UTC
This two-part series contains code fixes that are related to the
recently added support for zoned block devices in virtio-blk
driver.

The original ZBD patchset that was merged to the kernel -next was not
the latest and greatest version. The first patch of this series is
essentially a diff between the current code and the final revision of
the original patchset.

The second patch fixes a problem that is observed when a host-managed
zoned device is virtualized via virtio-blk and the driver kernel is
configured without ZBD support (CONFIG_BLK_DEV_ZONED not set). In this
case, the driver must not allow the device scan to succeed in order to
avoid erroneous device operation that may cause data loss. The
second patch adds this currently missing functionality.

Dmitry Fomichev (2):
  virtio-blk: migrate to the latest patchset version
  virtio-blk: fix ZBD probe in kernels without ZBD support

 drivers/block/virtio_blk.c      | 268 ++++++++++++++++++++------------
 include/uapi/linux/virtio_blk.h |  18 +--
 2 files changed, 181 insertions(+), 105 deletions(-)