Skip to content

Commit afaf5c6

Browse files
keithbuschaxboe
authored andcommitted
nvme: translate zone resource errors
Translate zoned resource errors to the appropriate blk_status_t. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 3b481d9 commit afaf5c6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/nvme/host/core.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ static blk_status_t nvme_error_status(u16 status)
248248
return BLK_STS_NEXUS;
249249
case NVME_SC_HOST_PATH_ERROR:
250250
return BLK_STS_TRANSPORT;
251+
case NVME_SC_ZONE_TOO_MANY_ACTIVE:
252+
return BLK_STS_ZONE_ACTIVE_RESOURCE;
253+
case NVME_SC_ZONE_TOO_MANY_OPEN:
254+
return BLK_STS_ZONE_OPEN_RESOURCE;
251255
default:
252256
return BLK_STS_IOERR;
253257
}

0 commit comments

Comments
 (0)