From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 8 Jan 2018 10:55:12 +0100 From: Christoph Hellwig To: Keith Busch Cc: Linux Block , Linux NVMe , Device Mapper , Christoph Hellwig , Mike Snitzer , Jens Axboe , Bart VanAssche , James Smart , "Martin K . Petersen" , Hannes Reinecke , Sagi Grimberg Subject: Re: [PATCH 1/5] nvme: Add more command status translation Message-ID: <20180108095512.GC4673@lst.de> References: <20180104224623.8944-1-keith.busch@intel.com> <20180104224623.8944-2-keith.busch@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20180104224623.8944-2-keith.busch@intel.com> List-ID: On Thu, Jan 04, 2018 at 03:46:19PM -0700, Keith Busch wrote: > This adds more NVMe status code translations to blk_status_t values, > and captures all the current status codes NVMe multipath uses. > > Signed-off-by: Keith Busch > --- > drivers/nvme/host/core.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c > index 2a69d735efbc..f1cf1f6c5b28 100644 > --- a/drivers/nvme/host/core.c > +++ b/drivers/nvme/host/core.c > @@ -156,14 +156,20 @@ static blk_status_t nvme_error_status(struct request *req) > case NVME_SC_SUCCESS: > return BLK_STS_OK; > case NVME_SC_CAP_EXCEEDED: > + case NVME_SC_LBA_RANGE: > return BLK_STS_NOSPC; lba range isn't really enospc. It is returned when the lba in the command is outside the logical size of the namespace.