Skip to content
Snippets Groups Projects
  1. Dec 08, 2021
  2. Dec 07, 2021
  3. Dec 06, 2021
    • Niklas Cassel's avatar
      nvme: report write pointer for a full zone as zone start + zone len · 793fcab8
      Niklas Cassel authored
      
      The write pointer in NVMe ZNS is invalid for a zone in zone state full.
      The same also holds true for ZAC/ZBC.
      
      The current behavior for NVMe is to simply propagate the wp reported by
      the drive, even for full zones. Since the wp is invalid for a full zone,
      the wp reported by the drive may be any value.
      
      The way that the sd_zbc driver handles a full zone is to always report
      the wp as zone start + zone len, regardless of what the drive reported.
      null_blk also follows this convention.
      
      Do the same for NVMe, so that a BLKREPORTZONE ioctl reports the write
      pointer for a full zone in a consistent way, regardless of the interface
      of the underlying zoned block device.
      
      blkzone report before patch:
      start: 0x000040000, len 0x040000, cap 0x03e000, wptr 0xfffffffffffbfff8
      reset:0 non-seq:0, zcond:14(fu) [type: 2(SEQ_WRITE_REQUIRED)]
      
      blkzone report after patch:
      start: 0x000040000, len 0x040000, cap 0x03e000, wptr 0x040000 reset:0
      non-seq:0, zcond:14(fu) [type: 2(SEQ_WRITE_REQUIRED)]
      
      Signed-off-by: default avatarNiklas Cassel <niklas.cassel@wdc.com>
      Reviewed-by: default avatarKeith Busch <kbusch@kernel.org>
      Reviewed-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
      Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      793fcab8
    • Keith Busch's avatar
      nvme: disable namespace access for unsupported metadata · d39ad2a4
      Keith Busch authored
      
      The only fabrics target that supports metadata handling through the
      separate integrity buffer is RDMA. It is currently usable only if the
      size is 8B per block and formatted for protection information. If an
      rdma target were to export a namespace with a different format (ex:
      4k+64B), the driver will not be able to submit valid read/write commands
      for that namespace.
      
      Suppress setting the metadata feature in the namespace so that the
      gendisk capacity will be set to 0. This will prevent read/write access
      through the block stack, but will continue to allow ioctl passthrough
      commands.
      
      Cc: Max Gurtovoy <mgurtovoy@nvidia.com>
      Cc: Sagi Grimberg <sagi@grimberg.me>
      Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      d39ad2a4
    • Keith Busch's avatar
      nvme: show subsys nqn for duplicate cntlids · 16cc33b2
      Keith Busch authored
      The driver assigned nvme handle isn't persistent across reboots, so is
      not enough information to match up where the collisions are occuring.
      Add the subsys nqn string to the output so that it can more easily be
      identified later.
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=215099
      
      
      Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      16cc33b2
  4. Nov 25, 2021
  5. Nov 23, 2021
  6. Nov 09, 2021
  7. Oct 27, 2021
  8. Oct 26, 2021
  9. Oct 25, 2021
  10. Oct 20, 2021
Loading