]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-rdma: handle nvme_rdma_post_send failures better
authorChao Leng <lengchao@huawei.com>
Mon, 1 Feb 2021 03:49:40 +0000 (11:49 +0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 10 Feb 2021 15:38:03 +0000 (16:38 +0100)
commiteabb54782073068d8661cf8bd472f8ceef631657
treea0257d8e1f05bcd0017b39e040a1faf740baeb58
parent15be479a933d562d238e488537b79e45cbd2bdb0
nvme-rdma: handle nvme_rdma_post_send failures better

nvme_rdma_post_send failing is a path related error and should bounce
to another path when using nvme-multipath.  Call nvme_host_path_error
when nvme_rdma_post_send returns -EIO to ensure nvme_complete_rq gets
invoked to fail over to another path if there is one.

Signed-off-by: Chao Leng <lengchao@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c