nvme: redirect commands on dying queue
authorChao Leng <lengchao@huawei.com>
Tue, 18 Aug 2020 07:11:32 +0000 (09:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Aug 2020 23:14:28 +0000 (17:14 -0600)
commit5eac5f3342b20825260d3800e7f5f74f12bac931
treef65fb11a3637f89cad5e07d539a6752363544a94
parent1e41f3bd26f79463c07aebf062a0a77f1fd39b2b
nvme: redirect commands on dying queue

If a command send through nvme-multipath failed on a dying queue, resend it
on another path.

Signed-off-by: Chao Leng <lengchao@huawei.com>
[hch: rebased on top of the completion refactoring]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c