[PATCH 2/2] nvme: return -ETIMEDOUT in nvme_submit_sync_cmd()
Hannes Reinecke
hare at suse.de
Wed Jan 27 05:04:35 EST 2021
On 1/27/21 10:22 AM, Daniel Wagner wrote:
> On Wed, Jan 27, 2021 at 09:06:05AM +0100, Hannes Reinecke wrote:
>> When a command times out we should be returning -ETIMEDOUT in
>> nvme_submit_sync_cmd(), and not requiring the caller to guess whether
>> a specific NVMe status should be interpreted as a timeout.
>>
>> Signed-off-by: Hannes Reinecke <hare at suse.de>
>> ---
>> drivers/nvme/host/core.c | 2 ++
>> drivers/nvme/host/nvme.h | 1 +
>> drivers/nvme/host/rdma.c | 1 +
>> drivers/nvme/host/tcp.c | 1 +
>
> I wonder if we have to do something similar for FC. As far I understand
> an abort command is issued and the drivers will return the original
> request with FCPOP_STATE_ABORTED which then will be mapped to
> NVME_SC_HOST_PATH_ERROR.
>
> Can't say if this is good or bad, it's a just different.
>
Good point, and indeed you are correct.
Will be sending a v2 version.
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare at suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer
More information about the Linux-nvme
mailing list