[PATCHv3 4/4] scsi: handle zone resources errors
Martin K. Petersen
martin.petersen at oracle.com
Tue Sep 22 17:45:01 EDT 2020
Keith,
> ZBC or ZAC disks that have a limit on the number of open zones may
> fail a zone open command or a write to a zone that is not already
> implicitly or explicitly open if the total number of open zones is
> already at the maximum allowed.
>
> For these operations, instead of returning the generic BLK_STS_IOERR,
> return BLK_STS_ZONE_OPEN_RESOURCE which is returned as -ETOOMANYREFS
> to the I/O issuer, allowing the device user to act appropriately on
> these relatively benign zone resource errors.
>
> Cc: Christoph Hellwig <hch at lst.de>
> Cc: Johannes Thumshirn <Johannes.Thumshirn at wdc.com>
> Signed-off-by: Damien Le Moal <damien.lemoal at wdc.com>
Looks fine but needs your SoB as Damien pointed out.
Acked-by: Martin K. Petersen <martin.petersen at oracle.com>
--
Martin K. Petersen Oracle Linux Engineering
More information about the Linux-nvme
mailing list