lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231217165359.604246-1-hch@lst.de>
Date: Sun, 17 Dec 2023 17:53:54 +0100
From: Christoph Hellwig <hch@....de>
To: Jens Axboe <axboe@...nel.dk>
Cc: Paolo Bonzini <pbonzini@...hat.com>,
	Stefan Hajnoczi <stefanha@...hat.com>,
	Damien Le Moal <dlemoal@...nel.org>,
	"Martin K. Petersen" <martin.petersen@...cle.com>,
	dm-devel@...ts.linux.dev,
	linux-kernel@...r.kernel.org,
	virtualization@...ts.linux.dev,
	linux-nvme@...ts.infradead.org,
	linux-scsi@...r.kernel.org,
	linux-btrfs@...r.kernel.org,
	linux-f2fs-devel@...ts.sourceforge.net
Subject: remove support for the host aware zoned model

Hi all,

hen 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.

Diffstat:
 block/blk-settings.c           |   83 +++++------------------------------------
 block/blk-sysfs.c              |    9 ----
 block/blk-zoned.c              |    3 -
 block/blk.h                    |    2 
 block/partitions/core.c        |   12 -----
 drivers/block/null_blk/zoned.c |    2 
 drivers/block/ublk_drv.c       |    2 
 drivers/block/virtio_blk.c     |   78 +++++++++++---------------------------
 drivers/md/dm-kcopyd.c         |    2 
 drivers/md/dm-table.c          |   45 +++++++++-------------
 drivers/md/dm-zoned-metadata.c |    7 +--
 drivers/md/dm-zoned-target.c   |    4 -
 drivers/nvme/host/zns.c        |    2 
 drivers/scsi/scsi_debug.c      |   27 ++++++-------
 drivers/scsi/sd.c              |   50 +++++++++++-------------
 drivers/scsi/sd_zbc.c          |   16 -------
 fs/btrfs/zoned.c               |   23 +----------
 fs/btrfs/zoned.h               |    2 
 fs/f2fs/data.c                 |    2 
 fs/f2fs/super.c                |   17 +++-----
 include/linux/blkdev.h         |   38 +-----------------
 21 files changed, 124 insertions(+), 302 deletions(-)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ