]> git.itanic.dy.fi Git - linux-stable/commit
block: remove support for the host aware zone model
authorChristoph Hellwig <hch@lst.de>
Sun, 17 Dec 2023 16:53:57 +0000 (17:53 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Dec 2023 03:17:43 +0000 (20:17 -0700)
commit7437bb73f087e5f216f9c6603f5149d354e315af
treed3fbe5cb3e4e91e1062e9c25f7fd8a39ed761309
parenta971ed8002110f211899279cd7295756d263b771
block: remove support for the host aware zone model

When zones were first added the SCSI and ATA specs, two different
models were supported (in addition to the drive managed one that
is invisible to the host):

 - host managed where non-conventional zones there is strict requirement
   to write at the write pointer, or else an error is returned
 - host aware where a write point is maintained if writes always happen
   at it, otherwise it is left in an under-defined state and the
   sequential write preferred zones behave like conventional zones
   (probably very badly performing ones, though)

Not surprisingly this lukewarm model didn't prove to be very useful and
was finally removed from the ZBC and SBC specs (NVMe never implemented
it).  Due to to the easily disappearing write pointer host software
could never rely on the write pointer to actually be useful for say
recovery.

Fortunately only a few HDD prototypes shipped using this model which
never made it to mass production.  Drop the support before it is too
late.  Note that any such host aware prototype HDD can still be used
with Linux as we'll now treat it as a conventional HDD.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20231217165359.604246-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 files changed:
block/blk-settings.c
block/blk-sysfs.c
block/partitions/core.c
drivers/block/null_blk/zoned.c
drivers/block/ublk_drv.c
drivers/block/virtio_blk.c
drivers/md/dm-kcopyd.c
drivers/md/dm-table.c
drivers/md/dm-zoned-metadata.c
drivers/md/dm-zoned-target.c
drivers/nvme/host/zns.c
drivers/scsi/scsi_debug.c
drivers/scsi/sd.c
drivers/scsi/sd_zbc.c
fs/btrfs/zoned.c
fs/btrfs/zoned.h
fs/f2fs/data.c
fs/f2fs/super.c
include/linux/blkdev.h