nvme-rdma: give up reconnect if state change fails
authorSagi Grimberg <sagi@grimberg.me>
Thu, 21 Sep 2017 14:01:37 +0000 (17:01 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Sep 2017 18:42:11 +0000 (12:42 -0600)
commit0a960afd60d02808c7f7f36d4aa8a2e07045e1e9
tree595bbd5401dd60817b57e36f1a457eae9786202f
parent1a40d97288c6ffea9b355139e88fa62f0e5439f7
nvme-rdma: give up reconnect if state change fails

If we failed to transition to state LIVE after a successful reconnect,
then controller deletion already started. In this case there is no
point moving forward with reconnect.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/rdma.c